PolymeshTopology
Description:
A class representing topology of a polymesh.
A class representing topology of a polymesh.
Remarks:
Topology of a polymesh consists of a number of points and triangular facets formed by the points. Each facet is determined by three indices to the array of points. A polymesh may have UV coordinates assigned, and always has at least one normal associated. There may be more than one normal available for a non-planar polymesh; there may be as many normals as there are either facets or points in the polymesh. The DistributionOfNormals property indicates how normals are distributed along the polymesh.
Topology of a polymesh consists of a number of points and triangular facets formed by the points. Each facet is determined by three indices to the array of points. A polymesh may have UV coordinates assigned, and always has at least one normal associated. There may be more than one normal available for a non-planar polymesh; there may be as many normals as there are either facets or points in the polymesh. The DistributionOfNormals property indicates how normals are distributed along the polymesh.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.PolymeshTopology
System.Object
Autodesk.Revit.DB.PolymeshTopology
public class PolymeshTopology : IDisposable
| Name | Return Type | Description |
|---|---|---|
| Dispose() | None | Releases all resources used by the |
| GetFacet(Int32) | PolymeshFacet | Returns a definition of one facet |
| GetFacets() | IList<PolymeshFacet> | Returns a definitions of all facets of the polymesh |
| GetNormal(Int32) | XYZ | Returns a normal vector at the given index |
| GetNormals() | IList<XYZ> | Returns all normals assigned to the polymesh |
| GetPoint(Int32) | XYZ | Returns one point at the given index. |
| GetPoints() | IList<XYZ> | Returns all points of the polymesh. |
| GetUV(Int32) | UV | Returns one UV coordinate at the given index. |
| GetUVs() | IList<UV> | Returns all UV coordinates assigned to the polymesh |
| Name | Return Type | Description |
|---|---|---|
| DistributionOfNormals | DistributionOfNormals | Indicates the distribution of normal vectors along the tessellated polymesh surface. |
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |
| NumberOfFacets | int | The number of facet in the polymesh. |
| NumberOfNormals | int | The number of normals associated with the polymesh |
| NumberOfPoints | int | The number of points in the polymesh |
| NumberOfUVs | int | The number of UV coordinates available for the polymesh. |