MeshObject
- class compas_rhino.objects.MeshObject(mesh, scene=None, name=None, layer=None, visible=True, settings=None)[source]
Bases:
compas_rhino.objects._object.BaseObject
Class 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.
Attributes
SETTINGS
anchor
The vertex of the mesh that is anchored to the location of the object.
guid_edge
Map between Rhino object GUIDs and mesh edge identifiers.
guid_edgelabel
Map between Rhino object GUIDs and mesh edgelabel identifiers.
guid_face
Map between Rhino object GUIDs and mesh face identifiers.
guid_facelabel
Map between Rhino object GUIDs and mesh facelabel identifiers.
guid_facenormal
Map between Rhino object GUIDs and mesh facenormal identifiers.
guid_vertex
Map between Rhino object GUIDs and mesh vertex identifiers.
guid_vertexlabel
Map between Rhino object GUIDs and mesh vertexlabel identifiers.
guid_vertexnormal
Map between Rhino object GUIDs and mesh vertexnormal identifiers.
guids
The GUIDs of all Rhino objects created by this artist.
location
compas.geometry.Point
: The location of the object.mesh
rotation
list of float: The rotation angles around the 3 axis of the coordinate system with the origin placed at the location of the object in the scene.
scale
float: A uniform scaling factor for the object in the scene.
vertex_xyz
The view coordinates of the mesh object.
Inherited Attributes
artist
id
item
layer
name
scene
Methods
Clear all Rhino objects associated with this object.
Draw the object representing the mesh.
Update the attributes of the mesh.
Update the attributes of the edges.
Update the attributes of selected faces.
Update the attributes of selected vertices.
Move the entire mesh object to a different location.
Move a single face of the mesh object and update the data structure accordingly.
Move a single vertex of the mesh object and update the data structure accordingly.
Move a multiple vertices of the mesh object and update the data structure accordingly.
Scale the mesh object from 3 reference points.
Select the object representing the item.
Select edges of the mesh.
Select faces of the mesh.
Select one vertex of the mesh.
Select vertices of the mesh.
Inherited Methods
Clear the layer of the object.
Redraw the Rhino scene/view.