2027 Class
Changes 0
C

VertexStream

Description:
The base class for DirectContext3D vertex streams, which are used to write vertex data into buffers.
Remarks:
This base class cannot be used directly. Instead, a steam that is specific for each type of vertex must be used. The process of putting vertex data into a buffer involves using a stream-buffer pair as follows:
  1. Map the vertex buffer.
  2. Get a stream of the appropriate type from the buffer.
  3. Add vertices of the same type to the stream. They 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.
public class VertexStream : IDisposable
Name Return Type Description Inherited From
M Dispose() None Releases all resources used by the VertexStream
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity.