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 GetNormal(Int32) XYZ Returns a normal unit vector at the given index.
M GetNormals() IList<XYZ> Returns all normals assigned to the mesh.
M Dispose() None Causes the object to release immediately any resources it may be utilizing. APIObject
M op_Equality(GeometryObject, GeometryObject) bool Determines whether two GeometryObjects are the same. GeometryObject
M Equals(Object) bool Determines whether the specified is equal to the current . GeometryObject
M GetHashCode() int Gets the integer value of the geometry object as hash code GeometryObject
M op_Inequality(GeometryObject, GeometryObject) bool Determines whether two GeometryObjects are different. GeometryObject
Name Return Type Description Inherited From
P DistributionOfNormals DistributionOfNormals Indicates the distribution of normal vectors along the tessellated mesh surface.
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 The 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 IsReadOnly bool Identifies if the object is read-only or modifiable. APIObject
P GraphicsStyleId ElementId The ElementId of the GeometryObject's GraphicsStyle GeometryObject
P Id int A unique integer identifying the GeometryObject in its associated non view-specific GeometryElement. GeometryObject
P IsElementGeometry bool Indicates whether this geometry is obtained directly from an Element. GeometryObject
P Visibility Visibility The visibility. GeometryObject