MeshObject
- class MeshObject[source]
Bases:
compas_view2.objects.bufferobject.BufferObject
Object for displaying COMPAS mesh data structures.
- Parameters
- data:class: compas.datastructures.Mesh
Mesh for the viewer
- namestring
name of the object
- show_verticesbool
True to show vertices
- show_edgesbool
True to show edges
- show_facesbool
True to show faces
- facecolorlist
Face color
- linecolorlist
Line color
- pointcolorlist
point color
- linewidthfloat
Line width
- pointsizefloat
Point size
- hide_coplanaredgesbool
True to hide the coplanar edges
- opacityfloat
The opacity of mesh
- verticeslist
Subset of vertices to be displayed
- edgeslist
Subset of edges to be displayed
- faceslist
Subset of faces to be displayed
- Attributes
- facecolorlist
Face color
- linecolorlist
Line color
- pointcolorlist
Face color
- linewidthfloat
Line width
- pointsizefloat
Point size
- hide_coplanaredgesbool
True to hide the coplanar edges
- opacityfloat
The opacity of mesh
- verticeslist
Subset of vertices to be displayed
- edgeslist
Subset of edges to be displayed
- faceslist
Subset of faces to be displayed
Inherited Methods
Build an object class according to its corrensponding data type
Draw the object from its buffers
Draw the object instance for picking
Initialize the object
Create buffers from point/line/face data.
Create all buffers from object's data
Register an object class to its corrensponding data type
Update the object
Update existing buffers from point/line/face data.
Update all buffers from object's data