Properties_T_Rhino_Geometry_Mesh - mcneel/rhinocommon-api-docs GitHub Wiki

Mesh Properties

The Mesh type exposes the following members.

Properties

 

Name Description
Public property ComponentStates Gets access to the vertex hidden/visibility collection in this mesh. This is a runtime property and it is not saved in the 3dm file.
Public property DisjointMeshCount Gets the number of disjoint (topologically unconnected) pieces in this mesh.
Public property FaceNormals Gets access to the face normal collection in this mesh.
Public propertyCode example Faces Gets access to the mesh face list.
Public property HasBrepForm Returns true if the Brep.TryConvertBrep function will be successful for this object (Inherited from GeometryBase.)
Public property HasCachedTextureCoordinates Will return true if SetCachedTextureCoordinates has been called; otherwise will return false.
Public property HasUserData Gets true if this class has any custom information attached to it through UserData. (Inherited from CommonObject.)
Public property IsClosed Gets a value indicating whether a mesh is considered to be closed (solid). A mesh is considered solid when every mesh edge borders two or more faces.
Public property IsDeformable true if object can be accurately modified with "squishy" transformations like projections, shears, and non-uniform scaling. (Inherited from GeometryBase.)
Public property IsDocumentControlled If true this object may not be modified. Any properties or functions that attempt to modify this object when it is set to "IsReadOnly" will throw a NotSupportedException. (Inherited from GeometryBase.)
Public property IsValid Tests an object to see if it is valid. (Inherited from CommonObject.)
Public property Ngons Gets access to the mesh ngon list. Ngons represent groups of Faces (triangles + quads).

Faces are used to tessellate an Ngon internally.

When a triangle or quad is referenced in the Ngon list, it is no longer visualized and conceived as a single entity, but takes part of the Ngon.

If you need to get access to both Ngons and the faces that are not referenced by Ngons, that is, all polygons that are visible in the mesh, then use the GetNgonAndFacesEnumerable() helper method.

Public propertyCode example Normals Gets access to the vertex normal collection in this mesh.
Public property ObjectType Useful for switch statements that need to differentiate between basic object types like points, curves, surfaces, and so on. (Inherited from GeometryBase.)
Public property PartitionCount Number of partition information chunks stored on this mesh based on the last call to CreatePartitions
Public property TextureCoordinates Gets access to the vertex texture coordinate collection in this mesh.
Public property TopologyEdges Gets the MeshTopologyEdgeList object associated with this mesh. This object stores edge connectivity.
Public property TopologyVertices Gets the MeshTopologyVertexList object associated with this mesh. This object stores vertex connectivity and the indices of vertices that were unified while computing the edge topology.
Public property UserData List of custom information that is attached to this class. (Inherited from CommonObject.)
Public property UserDictionary Dictionary of custom information attached to this class. The dictionary is actually user data provided as an easy to use sharable set of information. (Inherited from CommonObject.)
Public property UserStringCount Gets the amount of user strings. (Inherited from GeometryBase.)
Public property VertexColors Gets access to the (optional) vertex color collection in this mesh.
Public propertyCode example Vertices Gets access to the vertices set of this mesh.
  Back to Top

See Also

Reference

Mesh Class
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️