The TriangleMesh type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| TriangleMesh()()()() |
Initializes a new instance of the TriangleMesh class.
| |
| TriangleMesh(Int32, Int32) |
Initializes a new instance of the TriangleMesh class with the specified
initial capacity.
|
Methods
| Name | Description | |
|---|---|---|
| Add(ITriangleMesh) |
Adds the triangles of the specified mesh (without vertex welding).
| |
| Add(Triangle) |
Adds the triangle (without vertex welding).
| |
| Add(ITriangleMesh, Boolean) |
Adds the triangles of the specified mesh.
| |
| Add(Triangle, Boolean) |
Adds the triangle.
| |
| Add(Triangle, Boolean, Single, Boolean) |
Adds the triangle.
| |
| Clone |
Creates a new TriangleMesh that is a copy of the current instance.
| |
| ComputeNormals |
Computes the mesh normals.
| |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| FromModel |
Creates a triangle mesh from an XNA Model. (Only available in the
XNA-compatible build, except Silverlight.)
| |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetTriangle |
Gets the triangle with the given index.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ReverseWindingOrder |
Changes the winding order of all triangles.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| Transform |
Transforms all vertices by the given matrix.
| |
| WeldVertices()()()() |
Removes duplicate vertices.
| |
| WeldVertices(Single) |
Removes duplicate vertices.
|
Extension Methods
| Name | Description | |
|---|---|---|
| GetVolume |
Gets the enclosed volume of a triangle mesh.
(Defined by GeometryHelper.) |
Properties
| Name | Description | |
|---|---|---|
| Indices |
Gets or sets the indices.
| |
| NumberOfTriangles |
Gets the number of triangles.
| |
| Tag |
Gets or sets custom information.
| |
| Vertices |
Gets or sets the vertices.
|