TriangleInShellComponent
This class represents a triangle in a TriangulatedShellComponent object. The triangle is defined by its vertices, which are specified by their indices in the TriangulatedShellComponent’s array of vertices.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.TriangleInShellComponent
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class TriangleInShellComponent : IDisposableThe TriangleInShellComponent type exposes the following members.
Constructors
Name
Description
Public Method
TriangleInShellComponent
Creates a copy of the given TriangleInShellComponent
Properties
Name
Description
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
VertexIndex0
Index of the triangle’s first vertex in the TriangulatedShellComponent’s array of vertices.
Public Property
VertexIndex1
Index of the triangle’s second vertex in the TriangulatedShellComponent’s array of vertices.
Public Property
VertexIndex2
Index of the triangle’s third vertex in the TriangulatedShellComponent’s array of vertices.
Methods
Name
Description
Public Method
Dispose
Releases all resources used by the TriangleInShellComponent
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Remarks
A TriangulatedShellComponent stores an array of TriangleInShellComponent objects representing the triangles of the triangulation. An external class is used because the API does not allow the use of a triple of integers. Note that a TriangleInShellComponent must only be used in the context of a single, fixed TriangulatedShellComponent.