Revit 2026 API
Index |
The base class for DirectContext3D index streams, which are used to write vertex indices into buffers.
SystemObject
Autodesk.Revit.DB.DirectContext3DIndexStream
Autodesk.Revit.DB.DirectContext3DIndexStreamLine
Autodesk.Revit.DB.DirectContext3DIndexStreamPoint
Autodesk.Revit.DB.DirectContext3DIndexStreamTriangle
Autodesk.Revit.DB.DirectContext3DIndexStream
Autodesk.Revit.DB.DirectContext3DIndexStreamLine
Autodesk.Revit.DB.DirectContext3DIndexStreamPoint
Autodesk.Revit.DB.DirectContext3DIndexStreamTriangle
Namespace: Autodesk.Revit.DB.DirectContext3D
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
The IndexStream type exposes the following members.
| Name | Description | |
|---|---|---|
| IsValidObject | Specifies whether the .NET object represents a valid Revit entity. |
| Name | Description | |
|---|---|---|
| Dispose | Releases all resources used by the IndexStream | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
This base class cannot be used directly. Instead, a steam that is specific for each type of
primitive (point, line, or triangle) must be used.
- Use IndexStreamPoint to insert IndexPoint instances.
- Use IndexStreamLine to insert IndexLine instances.
- Use IndexStreamTriangle to insert IndexTriangle instances.
- Map the index buffer (see IndexBuffer).
- Get a stream for the appropriate primitive type from the buffer.
- Add sequences of indices corresponding to primitives of the same type to the stream. The indices will be written into the buffer that was used to create the stream.
- Unmap the buffer.
See Also