VertexBuffer
Description:
A buffer that stores vertex data for rendering.
A buffer that stores vertex data for rendering.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.DirectContext3D.VertexBuffer
System.Object
Autodesk.Revit.DB.DirectContext3D.VertexBuffer
public class VertexBuffer : IDisposable
| Name | Return Type | Description |
|---|---|---|
| VertexBuffer(Int32) | None | Constructs the vertex buffer with the given capacity, measured in floats. |
| Name | Return Type | Description |
|---|---|---|
| Dispose() | None | Releases all resources used by the |
| GetMappedHandle() | IntPtr | Gets a handle to the buffer's memory that has been mapped. Writing data to the buffer using the handle is an alternative to using stream objects. |
| GetVertexStreamPositionColored() | VertexStreamPositionColored | Gets a stream that can be used to write vertices of type into the buffer. |
| GetVertexStreamPosition() | VertexStreamPosition | Gets a stream that can be used to write vertices of type into the buffer. |
| GetVertexStreamPositionNormalColored() | VertexStreamPositionNormalColored | Gets a stream that can be used to write vertices of type into the buffer. |
| GetVertexStreamPositionNormal() | VertexStreamPositionNormal | Gets a stream that can be used to write vertices of type into the buffer. |
| IsValid() | bool | Tests whether the buffer is valid for rendering. |
| Map(Int32) | None | Maps a portion of the buffer into memory, so that vertex data can be written into it. (see ). |
| Unmap() | None | Unmaps the buffer, so that it can be used for rendering. |
| Name | Return Type | Description |
|---|---|---|
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |