MeshObject

class compas_blender.scene.MeshObject[source]

Bases: BlenderSceneObject, MeshObject

Scene object for drawing mesh data structures in Blender.

Parameters:
vertex_uint, optional

Number of segments in the U direction of the vertex spheres. Default is 16.

vertex_vint, optional

Number of segments in the V direction of the vertex spheres. Default is 16.

**kwargsdict, optional

Additional keyword arguments. For more info, see compas_blender.scene.BlenderSceneObject and compas.scene.MeshObject.

Attributes:
vertex_uint

Number of segments in the U direction of the vertex spheres.

vertex_vint

Number of segments in the V direction of the vertex spheres.

vertexobjectslist[bpy.types.Object]

List of Blender objects representing the vertices.

edgeobjectslist[bpy.types.Object]

List of Blender objects representing the edges.

faceobjectslist[bpy.types.Object]

List of Blender objects representing the faces.

Methods

clear

The main clearing method.

clear_edges

Clear the edge objects.

clear_faces

Clear the face objects.

clear_vertices

Clear the vertex objects.

draw

Draw the mesh.

draw_edges

Draw a selection of edges.

draw_faces

Draw a selection of faces.

draw_vertices

Draw a selection of vertices.

Inherited Methods

ToString

Converts the instance to a string.

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.

copy

Make an independent copy of the data object.

create_collection

Create a collection with the given name.

create_object

Add an object to the Blender scene.

delete_collection

Delete a collection.

draw_mesh

Draw the mesh of the mesh.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

remove

Remove a child node from this node.

set_object_color

Set the color of a Blender object.

set_object_tranformation

Set the transformation of a Blender object.

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

to_json

Convert an object to its native data representation and save it to a JSON file.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

traverse

Traverse the tree from this node.

update_object

Update an object in the Blender scene.

validate_data

Validate the data against the object's data schema.