Looking for a simple example of a viewer with flags, e.g. 'wireframe'
See original GitHub issueI’m a Python beginner and I run into problems understanding deep nestled import tree in trimesh. I’m trying to add some flags to the basic show()
call. I would like to have wireframe, axis, etc., but I’m stuck at not finding proper names for classes and functions, e.g. trimesh.viewer.windowed.SceneViewer
. This code snippet:
import trimesh, pyglet
mesh = trimesh.creation.cylinder(1, height=1)
scene = trimesh.Scene([mesh])
viewer = trimesh.viewer.windowed.SceneViewer(scene, flags='wireframe')
viewer.show()
fails with:
File "/home/paul/upwork/pick/code/test-trimesh.py", line 5, in <module>
viewer = trimesh.viewer.windowed.SceneViewer(scene, flags='wireframe')
AttributeError: module 'trimesh' has no attribute 'viewer'
How do I import trimesh.viewer.windowed.SceneViewer
? Are there any examples? Is there an axis display flag?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
15 Wireframe Examples and How to Make Your Own - Looka
Take a look at the examples below for inspiration! 1. Website wireframe sketch. hand drawn website wireframe example. Source: Earth Tribe ...
Read more >Wireframes: A Great Way to Start Development Projects - InfoQ
Wireframes are simple block diagrams that show the placement of elements in a user interface and demonstrate the intended layout and ...
Read more >001 View wireframe over a clip - Nuke Video Tutorial - LinkedIn
The procedure for viewing wireframe geometry over 2D images is demonstrated. This NUKE technique is important for checking the geometry lines up with...
Read more >trimesh.viewer — trimesh 3.17.1 documentation
View meshes and scenes via pyglet or inline HTML. Create a window that will display a trimesh. Scene object in an OpenGL context...
Read more >OpenGL Examples
Uses only the GL_POLYGON drawing mode. Illustrates glClear and glFlush . triangle.cpp. // A simple introductory program; its main ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey, the easiest way to do that is probably to pass the kwargs to the
mesh.show
orscene.show
call, as the kwargs to those calls get passed through toSceneViewer.__init__
:Thanks, it works. I found that
show(flags={'wireframe': True, 'axis': True})
works too. I can’t find it in the documentation, though.