PYME.LMVis.layers.mesh module¶
- class PYME.LMVis.layers.mesh.FlatFaceEngine¶
Bases:
WireframeEngine
- render(gl_canvas, layer)¶
- class PYME.LMVis.layers.mesh.OITShadedFaceEngine¶
Bases:
WireframeEngine
- render(gl_canvas, layer)¶
- use_oit(layer)¶
- class PYME.LMVis.layers.mesh.ShadedFaceEngine¶
Bases:
WireframeEngine
- render(gl_canvas, layer)¶
- class PYME.LMVis.layers.mesh.TesselEngine¶
Bases:
WireframeEngine
- render(gl_canvas, layer)¶
- class PYME.LMVis.layers.mesh.TriangleRenderLayer(pipeline, method='wireframe', dsname='', **kwargs)¶
Bases:
EngineLayer
Layer for viewing triangle meshes.
- alpha = <PYME.misc.mock_traits.Float object>¶
- property bbox¶
Bounding box in form [x0,y0,z0, x1,y1,z1] (or none if a bounding box does not make sense for this layer) over-ride in derived classes
- clim = <PYME.misc.mock_traits.CStr object>¶
- cmap = <PYME.misc.mock_traits.CStr object>¶
- property colour_map¶
- property datasource¶
Return the datasource we are connected to (does not go through the pipeline for triangles_mesh).
- default_traits_view()¶
- property default_view¶
- display_normals = <PYME.misc.mock_traits.CStr object>¶
- dsname = <PYME.misc.mock_traits.CStr object>¶
- get_color_limit()¶
- get_color_map()¶
- get_colors()¶
Provides the engine with a way of obtaining vertex data. Should be over-ridden in derived class
- Returns
- a numpy array of vertices suitable for passing to glColorPointerf()
- get_normals()¶
Provides the engine with a way of obtaining vertex data. Should be over-ridden in derived class
- Returns
- a numpy array of normals suitable for passing to glNormalPointerf()
- get_vertices()¶
Provides the engine with a way of obtaining vertex data. Should be over-ridden in derived class
- Returns
- a numpy array of vertices suitable for passing to glVertexPointerf()
- method = <PYME.misc.mock_traits.CStr object>¶
- normal_mode = <PYME.misc.mock_traits.CStr object>¶
- normal_scaling = <PYME.misc.mock_traits.Float object>¶
- update(*args, **kwargs)¶
- update_from_datasource(ds)¶
Pulls vertices/normals from a binary STL file. See PYME.IO.FileUtils.stl for more info. Calls update_data on the input.
- Parameters
- ds
PYME.experimental.triangular_mesh.TriangularMesh object
- Returns
- None
- vertexColour = <PYME.misc.mock_traits.CStr object>¶
- class PYME.LMVis.layers.mesh.WireframeEngine¶
Bases:
BaseEngine
- render(gl_canvas, layer)¶