AnyCAD Rapid API 2024
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)
 
long GetFlags ()
 
void SetFlags (long 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 ()
 

详细描述

<> 图元几何对象.

成员函数说明

◆ AddAttribute()

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

添加属性

参数
loc位置
component每个顶点对应几个数据
data数据

◆ ComputeBoundingBox()

void BufferGeometry.ComputeBoundingBox ( )

计算包围盒

◆ FindAttribute()

BufferAttribute BufferGeometry.FindAttribute ( EnumAttributeSemantic  location)

根据位置查找属性

参数
location位置
返回
属性

◆ GetAttribute()

BufferAttribute BufferGeometry.GetAttribute ( long  idx)

根据索引获取属性

参数
idxthe index

◆ GetSafeBoudingBox()

AABox BufferGeometry.GetSafeBoudingBox ( )

获取包围盒。若不存在,则从顶点计算

返回
包围

◆ GetVertexCount()

long BufferGeometry.GetVertexCount ( )

顶点个数

◆ HasAttribute()

boolean BufferGeometry.HasAttribute ( EnumAttributeSemantic  semantic)

是否存在属性

参数
semantic属性类型
返回
true存在

◆ HasColorAttribute()

boolean BufferGeometry.HasColorAttribute ( )

是否有颜色属性

返回
true存在

◆ IsEmpty()

boolean BufferGeometry.IsEmpty ( )

是否为孔对象

返回

◆ RequestUpdate()

void BufferGeometry.RequestUpdate ( )

更新

◆ SetBoundingBox()

void BufferGeometry.SetBoundingBox ( AABox  box)

设置包围盒

参数
box包围盒

◆ SetIndex() [1/2]

void BufferGeometry.SetIndex ( Uint16Buffer  data)

设置顶点索引

参数
data数据

◆ SetIndex() [2/2]

void BufferGeometry.SetIndex ( Uint32Buffer  data)

设置顶点索引

参数
data数据