MeshObject
- class MeshObject[source]
Bases:
ViewerSceneObject
,MeshObject
Viewer scene object for displaying COMPAS Mesh geometry.
- Parameters:
- mesh
compas.datastructures.Mesh
A COMPAS mesh.
- hide_coplanaredgesbool, optional
True to hide the coplanar edges. It will override the value in the config file.
- use_vertexcolorsbool, optional
True to use vertex color. It will override the value in the config file.
- **kwargsdict, optional
Additional options for the
compas_viewer.scene.ViewerSceneObject
.
- mesh
See also
- Attributes:
- mesh
compas.datastructures.Mesh
The mesh data structure.
- vertexcolor
compas.colors.Colordict
Vertex colors.
- use_vertexcolorsbool
True to use vertex color. Defaults to False.
- hide_coplanaredgesbool
True to hide the coplanar edges.
- mesh
Methods
Draw the edges of the mesh.
Draw the faces of the mesh.
Draw the vertices of the mesh.
Inherited Methods
Add a child item to the scene object.
Clear the object
Clear the edges of the mesh.
Clear the faces of the mesh.
Clear the vertices of the mesh.
Draw the object from its buffers
Draw the object instance for picking
Draw the mesh of the mesh.
Initialize the object
Create buffers from point/line/face data.
Create all buffers from object's data
Update the object
Update existing buffers from point/line/face data.
Update all buffers from object's data