Mesh
Description:
A triangular mesh.
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.
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
System.Object
Autodesk.Revit.DB.APIObject
Autodesk.Revit.DB.GeometryObject
Autodesk.Revit.DB.Mesh
public class Mesh : GeometryObject
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| 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. | |
| GetNormal(Int32) | XYZ | Returns a normal unit vector at the given index. | |
| GetNormals() | IList<XYZ> | Returns all normals assigned to the mesh. | |
| Dispose() | None | Causes the object to release immediately any resources it may be utilizing. | APIObject |
| op_Equality(GeometryObject, GeometryObject) | bool | Determines whether two GeometryObjects are the same. | GeometryObject |
| Equals(Object) | bool | Determines whether the specified is equal to the current . | GeometryObject |
| GetHashCode() | int | Gets the integer value of the geometry object as hash code | GeometryObject |
| op_Inequality(GeometryObject, GeometryObject) | bool | Determines whether two GeometryObjects are different. | GeometryObject |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| DistributionOfNormals | DistributionOfNormals | Indicates the distribution of normal vectors along the tessellated mesh surface. | |
| IsClosed | bool | Indicates whether the mesh is closed. | |
| MaterialElementId | ElementId | Element ID of the material from which this mesh is composed. | |
| NumberOfNormals | int | The number of normals associated with the mesh. | |
| NumTriangles | int | The number of triangles that the mesh contains. | |
| Transformed | The transformed mesh. | Transforms this mesh and returns the result. | |
| Triangle | MeshTriangle | Retrieves a specific triangle. | |
| Vertices | IList<XYZ> | Retrieves all vertices used to define this mesh. Intended for indexed access. | |
| IsReadOnly | bool | Identifies if the object is read-only or modifiable. | APIObject |
| GraphicsStyleId | ElementId | The ElementId of the GeometryObject's GraphicsStyle | GeometryObject |
| Id | int | A unique integer identifying the GeometryObject in its associated non view-specific GeometryElement. | GeometryObject |
| IsElementGeometry | bool | Indicates whether this geometry is obtained directly from an Element. | GeometryObject |
| Visibility | Visibility | The visibility. | GeometryObject |