MeshObject
- class compas_rhino.objects.MeshObject(mesh, scene=None, name=None, layer=None, visible=True, settings=None)[source]
Bases:
compas_rhino.objects._object.BaseObjectClass for representing COMPAS meshes in Rhino.
- Parameters
mesh (
compas.datastructures.Mesh) – A mesh data structure.scene (
compas.scenes.Scene, optional) – A scene object.name (str, optional) – The name of the object.
layer (str, optional) – The layer for drawing.
visible (bool, optional) – Toggle for the visibility of the object.
settings (dict, optional) – A dictionary of settings.
Methods
build(item, **kwargs)clear()Clear all Rhino objects associated with this object.
Clear the layer of the object.
draw()Draw the object representing the mesh.
modify()Update the attributes of the mesh.
modify_edges(edges[, names])Update the attributes of the edges.
modify_faces(faces[, names])Update the attributes of selected faces.
modify_vertices(vertices[, names])Update the attributes of selected vertices.
move()Move the entire mesh object to a different location.
move_face(face)Move a single face of the mesh object and update the data structure accordingly.
move_vertex(vertex)Move a single vertex of the mesh object and update the data structure accordingly.
move_vertices(vertices)Move a multiple vertices of the mesh object and update the data structure accordingly.
redraw()Redraw the Rhino scene/view.
register(item_type, object_type)scale_from_3_points([message])Scale the mesh object from 3 reference points.
select()Select the object representing the item.
select_edges([message])Select edges of the mesh.
select_faces([message])Select faces of the mesh.
select_vertex([message])Select one vertex of the mesh.
select_vertices([message])Select vertices of the mesh.