| Revit 2020.1 API |
| TriangulatedShellComponent..::..GetTriangle Method |
| TriangulatedShellComponent Class See Also |
Returns the triangle corresponding to the given index.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 20.0.0.0 (20.1.1.1)
Since:
2013
Syntax
| C# |
|---|
public TriangleInShellComponent GetTriangle( int triangleIndex ) |
| Visual Basic |
|---|
Public Function GetTriangle ( _ triangleIndex As Integer _ ) As TriangleInShellComponent |
| Visual C++ |
|---|
public: TriangleInShellComponent^ GetTriangle( int triangleIndex ) |
Parameters
- triangleIndex
- Type: System..::..Int32
The index of the triangle (between 0 and TriangleCount-1, inclusive).
Return Value
The triangle.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentException | triangleIndex is out of range. |