IndexTriangle Class

A triangle primitive consisting of three indices.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DB.DirectContext3DIndexPrimitive
    Autodesk.Revit.DB.DirectContext3DIndexTriangle

Namespace: Autodesk.Revit.DB.DirectContext3D
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class IndexTriangle : IndexPrimitive

The IndexTriangle type exposes the following members.

Constructors
 NameDescription
Public methodIndexTriangle Constructs the triangle primitive.
Top
Properties
 NameDescription
Public propertyIndex0 The index of the triangle's first vertex.
Public propertyIndex1 The index of the triangle's second vertex.
Public propertyIndex2 The index of the triangle's third vertex.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
(Inherited from IndexPrimitive)
Top
Methods
 NameDescription
Public methodDispose
(Inherited from IndexPrimitive)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetSizeInShortInts Gets the amount of storage that the primitive takes up in a buffer, measured in short integers.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
Indices of a triangle's vertices can be listed in either the clockwise or counterclockwise winding order, according to the triangle's orientation in space. A DirectContext3D triangle faces the viewer if its vertices are in counterclockwise order from the viewer's point of view.
See Also