TriangulatedSolidOrShell
This class represents a triangulated solid or shell.
The triangulation consists of a number of TriangulatedShellComponents. For a solid, there will be one TriangulatedShellComponent for each component of the solid's boundary. For example, a solid cube has just one boundary component (containing six faces), so there will be just one TriangulatedShellComponent. A solid consisting of two disjoint cubes has two boundary components (the boundaries of the two cubes), so there will be two TriangulatedShellComponents. A solid consisting of a sphere with a round void (or hole) inside it also has two boundary components (the outer sphere and the inner sphere), so there will be two TriangulatedShellComponents.
For a shell, there will be one TriangulatedShellComponent for each component of the shell.
Note that this class does not contain information on the containment structure of the boundary components of a solid.
Be careful not to confuse the components of a solid with the solid's boundary components. This class deals only with the boundary components.
System.Object
Autodesk.Revit.DB.TriangulatedSolidOrShell
public class TriangulatedSolidOrShell : IDisposable
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Dispose() | None | Releases all resources used by the TriangulatedSolidOrShell | |
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetShellComponent(Int32) | TriangulatedShellComponent | Returns the specified shell component of a solid or shell. Input componentIndex must lie between 0 and ShellComponentCount-1, inclusive. The returned TriangulatedShellComponent should not be modified by the caller. | |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| ToString | None | Returns a string that represents the current object. (Inherited from Object ) | Object |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| IsValidObject | Boolean | Specifies whether the .NET object represents a valid Revit entity. | |
| ShellComponentCount | int | The number of TriangulatedShellComponents that this TriangulatedSolidOrShell contains. |