Share

IndexStream Class

The base class for DirectContext3D index streams, which are used to write vertex indices into buffers.

Inheritance Hierarchy

System.Object
  Autodesk.Revit.DB.DirectContext3D.IndexStream
    Autodesk.Revit.DB.DirectContext3D.IndexStreamLine
    Autodesk.Revit.DB.DirectContext3D.IndexStreamPoint
    Autodesk.Revit.DB.DirectContext3D.IndexStreamTriangle


Namespace: Autodesk.Revit.DB.DirectContext3D
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)

Syntax

C#

public class IndexStream : IDisposable

The IndexStream type exposes the following members.

Properties

 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.

Methods

 NameDescription
Public methodDisposeReleases all resources used by the IndexStream
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 methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)

Remarks

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. The process of putting vertex indices into a buffer involves using a stream-buffer pair as follows:
  1. Map the index buffer (see IndexBuffer).
  2. Get a stream for the appropriate primitive type from the buffer.
  3. 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.
  4. Unmap the buffer.
As an alternative to using streams, it is possible to write data into a buffer using a handle to its mapped memory.

See Also

Reference

Was this information helpful?