VolMeshObject

class compas_blender.scene.VolMeshObject[source]

Bases: BlenderSceneObject, VolMeshObject

A scene object for drawing volumetric mesh data structures in Blender.

Parameters:
volmeshcompas.datastructures.VolMesh

The volmesh data structure.

**kwargsdict, optional

Additional keyword arguments.

Methods

clear

The main clearing method.

clear_cells

Clear the objects contained in the cell collection (self.cellcollection).

clear_edges

Clear the objects contained in the edge collection (self.edgecollection).

clear_faces

Clear the objects contained in the face collection (self.facecollection).

clear_vertices

Clear the objects contained in the vertex collection (self.vertexcollection).

draw

Draw a selection of cells.

draw_cells

Draw a selection of cells.

draw_edges

Draw a selection of edges.

draw_facenormals

Draw the normals of the faces.

draw_faces

Draw a selection of faces.

draw_vertexnormals

Draw the normals at the vertices of the mesh.

draw_vertices

Draw a selection of vertices.

Inherited Methods

add

Add a child item to the scene object.

add_object_to_collection

Add an object to a collection.

clear_collection

Clear the objects in a collection.

create_collection

Create a collection with the given name.

create_object

Add an object to the Blender scene.

delete_collection

Delete a collection.

set_object_color

Set the color of a Blender object.

set_object_tranformation

Set the transformation of a Blender object.

update_object

Update an object in the Blender scene.