AnyCAD Rapid API 2023
Help you to create a better world!
BufferGeometry Class Reference
Inheritance diagram for BufferGeometry:
GfxObject

Public Member Functions

 BufferGeometry (EnumPrimitiveType type, long instanceCount)
 
 BufferGeometry (EnumPrimitiveType type)
 
EnumPrimitiveType GetPrimitiveType ()
 
void SetPrimitiveType (EnumPrimitiveType val)
 
ElementAttribute GetIndex ()
 
long GetInstanceCount ()
 
void SetInstanceCount (long val)
 
boolean GetMultiDraw ()
 
void SetMultiDraw (boolean val)
 
ArrayBuffer GetSubDrawIndex ()
 
void SetSubDrawIndex (ArrayBuffer val)
 
Int32Buffer GetSubDrawCount ()
 
void SetSubDrawCount (Int32Buffer val)
 
AxisAlignedBox GetBoundingBox ()
 
void SetBoundingBox (AxisAlignedBox val)
 
long GetUpdateVersion ()
 
long GetVertexCount ()
 
boolean IsEmpty ()
 
void RequestUpdate ()
 
BufferAttribute GetAttribute (long idx)
 
void AddAttribute (EnumAttributeSemantic loc, EnumAttributeComponents component, ArrayBuffer data)
 
void SetIndex (Uint32Buffer data)
 
BufferAttribute FindAttribute (EnumAttributeSemantic location)
 
boolean HasColorAttribute ()
 
boolean HasAttribute (EnumAttributeSemantic semantic)
 
void ComputeBoundingBox ()
 
AxisAlignedBox GetSafeBoudingBox ()
 
- Public Member Functions inherited from GfxObject
long GetUuid ()
 

Detailed Description

<> The geometry can be buffered in GPU.

Member Function Documentation

◆ AddAttribute()

void BufferGeometry.AddAttribute ( EnumAttributeSemantic  loc,
EnumAttributeComponents  component,
ArrayBuffer  data 
)

Add vertex attribute.

◆ GetAttribute()

BufferAttribute BufferGeometry.GetAttribute ( long  idx)

Get attribute by index

Parameters
idxthe index