C

Mesh

Description:
A triangular mesh.
Remarks:
Meshes are generated during triangulation of faces. They can also be encountered directly in Revit geometry (typically imported geometry). Meshes contain a single array of Vertices, and a corresponding array of triangles. Triangles can be accessed by index from Triangle[Int32], and reference 3 vertices from the Vertices array.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.APIObject
    Autodesk.Revit.DB.GeometryObject
      Autodesk.Revit.DB.Mesh
public class Mesh : GeometryObject
Name Return Type Description Inherited From
M ComputeSurfaceArea() Double Computes and returns the surface area of the mesh. The surface area is the sum of the areas of the constituent facets of the mesh.
M Dispose() None Causes the object to release immediately any resources it may be utilizing. (Inherited from APIObject ) APIObject
M Equals(Object) Boolean Determines whether the specified Object is equal to the current Object . (Inherited from GeometryObject ) GeometryObject
M GetHashCode() Int32 Gets the integer value of the geometry object as hash code (Inherited from GeometryObject ) GeometryObject
M GetNormal(Int32) XYZ Returns a normal unit vector at the given index.
M GetNormals() IList<XYZ> Returns all normals assigned to the mesh.
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P DistributionOfNormals DistributionOfNormals Indicates the distribution of normal vectors along the tessellated mesh surface.
P GraphicsStyleId ElementId The ElementId of the GeometryObject's GraphicsStyle (Inherited from GeometryObject ) GeometryObject
P Id int A unique integer identifying the GeometryObject in its associated non view-specific GeometryElement. (Inherited from GeometryObject ) GeometryObject
P IsClosed bool Indicates whether the mesh is closed.
P IsElementGeometry bool Indicates whether this geometry is obtained directly from an Element. (Inherited from GeometryObject ) GeometryObject
P IsReadOnly bool Identifies if the object is read-only or modifiable. (Inherited from APIObject ) APIObject
P MaterialElementId ElementId Element ID of the material from which this mesh is composed.
P NumberOfNormals int The number of normals associated with the mesh.
P NumTriangles int The number of triangles that the mesh contains.
P Transformed Mesh Transforms this mesh and returns the result.
P Triangle MeshTriangle Retrieves a specific triangle.
P Vertices IList<XYZ> Retrieves all vertices used to define this mesh. Intended for indexed access.
P Visibility Visibility The visibility. (Inherited from GeometryObject ) GeometryObject