AnyCAD Rapid API 2023
Help you to create a better world!
载入中...
搜索中...
未找到
BufferGeometry类 参考
类 BufferGeometry 继承关系图:
GfxObject

Public 成员函数

 BufferGeometry (EnumPrimitiveType type, long instanceCount)
 
 BufferGeometry (EnumPrimitiveType type)
 
EnumPrimitiveType GetPrimitiveType ()
 
void SetPrimitiveType (EnumPrimitiveType val)
 
long GetInstanceCount ()
 
void SetInstanceCount (long val)
 
boolean GetMultiDraw ()
 
void SetMultiDraw (boolean val)
 
AABox GetBoundingBox ()
 
ArrayBuffer GetSubDrawIndex ()
 
void SetSubDrawIndex (ArrayBuffer val)
 
Int32Buffer GetSubDrawCount ()
 
void SetSubDrawCount (Int32Buffer val)
 
ElementAttribute GetIndex ()
 
long GetUpdateVersion ()
 
long GetVertexCount ()
 
void SetBoundingBox (AABox box)
 
boolean IsEmpty ()
 
void RequestUpdate ()
 
BufferAttribute GetAttribute (long idx)
 
void AddAttribute (EnumAttributeSemantic loc, EnumAttributeComponents component, ArrayBuffer data)
 
void SetIndex (Uint32Buffer data)
 
void SetIndex (Uint16Buffer data)
 
BufferAttribute FindAttribute (EnumAttributeSemantic location)
 
boolean HasColorAttribute ()
 
boolean HasAttribute (EnumAttributeSemantic semantic)
 
void ComputeBoundingBox ()
 
AABox GetSafeBoudingBox ()
 
- Public 成员函数 继承自 GfxObject
long GetUuid ()
 

详细描述

<> The geometry can be buffered in GPU.

成员函数说明

◆ AddAttribute()

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

Add vertex attribute.

◆ GetAttribute()

BufferAttribute BufferGeometry.GetAttribute ( long  idx)

Get attribute by index

参数
idxthe index