Skip to content

IndexBuffer

Public Class

A buffer that stores vertex indices for rendering.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.DirectContext3D.IndexBuffer

Namespace: Autodesk.Revit.DB.DirectContext3D

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public class IndexBuffer : IDisposable

The IndexBuffer type exposes the following members.

Constructors

Name

Description


Public Method
IndexBuffer

Constructs the index buffer with the given capacity, measured in short integers.


Properties

Name

Description


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.


Methods

Name

Description


Public Method

Releases all resources used by the IndexBuffer


Public Method

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)


Public Method

GetHashCode

Serves as the default hash function.
(Inherited from Object)


Public Method

Gets a stream that can be used to write IndexLine segment primitives into the buffer.


Public Method

Gets a stream that can be used to write IndexPoint primitives into the buffer.


Public Method

Gets a stream that can be used to write IndexTriangle primitives into the buffer.


Public Method

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.


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method
IsValid

Tests whether the buffer is valid for rendering.


Public Method

Maps a portion of the index buffer into memory, so that indices can be written into it. see IndexStream.


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)


Public Method

Unmaps the buffer so that it can be used for rendering.