This function facets (i.e., triangulates) a solid or an open shell. Each boundary
component of the solid or shell is represented by a single triangulated structure.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public static TriangulatedSolidOrShell TessellateSolidOrShell( Solid solidOrShell, SolidOrShellTessellationControls tessellationControls )
Parameters
- solidOrShell Solid
- The solid or shell to be faceted.
- tessellationControls SolidOrShellTessellationControls
- This input controls various aspects of the triangulation.
Return Value
TriangulatedSolidOrShellThe triangulated structures corresponding to the boundary components of the input solid or the components of the input shell.
Exceptions
Exception | Condition |
---|---|
ArgumentException | solidOrShell is not valid for triangulation (for example, it contains no faces). |
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | Unable to triangulate the solid or shell. |