AnyCAD Rapid API 2026
Help you to create a better world!
载入中...
搜索中...
未找到
AnyCAD.Foundation.BufferGeometry类 参考

图元几何对象. 更多...

类 AnyCAD.Foundation.BufferGeometry 继承关系图:
AnyCAD.Foundation.GfxObject

Public 成员函数

 BufferGeometry (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
 BufferGeometry (EnumPrimitiveType type, uint instanceCount)
 
 BufferGeometry (EnumPrimitiveType type)
 
EnumPrimitiveType GetPrimitiveType ()
 
void SetPrimitiveType (EnumPrimitiveType val)
 
uint GetInstanceCount ()
 
void SetInstanceCount (uint val)
 
bool GetMultiDraw ()
 
void SetMultiDraw (bool val)
 
AABox GetBoundingBox ()
 
ArrayBuffer GetSubDrawIndex ()
 
void SetSubDrawIndex (ArrayBuffer val)
 
Int32Buffer GetSubDrawCount ()
 
void SetSubDrawCount (Int32Buffer val)
 
uint GetFlags ()
 
void SetFlags (uint val)
 
ElementAttribute GetIndex ()
 
uint GetUpdateVersion ()
 
uint GetVertexCount ()
 顶点个数
 
void SetBoundingBox (AABox box)
 设置包围盒
 
bool IsEmpty ()
 是否为空对象
 
void RequestUpdate ()
 更新
 
BufferAttribute GetAttribute (uint idx)
 
void AddAttribute (EnumAttributeSemantic loc, EnumAttributeComponents component, ArrayBuffer data)
 添加属性
 
void AddAttributeByData (EnumAttributeSemantic loc, EnumAttributeComponents component, ArrayBuffer data)
 
void AddAttribute (EnumAttributeSemantic loc, EnumAttributeComponents component, ArrayBufferView data)
 添加属性
 
void SetIndex (Uint32Buffer data)
 设置顶点索引
 
void SetIndex32 (Uint32Buffer data)
 
void SetIndex (Uint16Buffer data)
 设置顶点索引
 
void SetIndex16 (Uint16Buffer data)
 
BufferAttribute FindAttribute (EnumAttributeSemantic location)
 根据位置查找属性
 
bool HasColorAttribute ()
 是否有颜色属性
 
bool HasAttribute (EnumAttributeSemantic semantic)
 是否存在属性
 
void ComputeBoundingBox ()
 计算包围盒
 
AABox GetSafeBoudingBox ()
 获取包围盒。若不存在,则从顶点计算
 
- Public 成员函数 继承自 AnyCAD.Foundation.GfxObject
 GfxObject (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
uint GetUuid ()
 

详细描述

图元几何对象.

Group: Rendering

成员函数说明

◆ AddAttribute() [1/2]

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

添加属性

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

◆ AddAttribute() [2/2]

void AnyCAD.Foundation.BufferGeometry.AddAttribute ( EnumAttributeSemantic loc,
EnumAttributeComponents component,
ArrayBufferView data )

添加属性

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

◆ FindAttribute()

BufferAttribute AnyCAD.Foundation.BufferGeometry.FindAttribute ( EnumAttributeSemantic location)

根据位置查找属性

参数
location位置
返回
属性

◆ GetAttribute()

BufferAttribute AnyCAD.Foundation.BufferGeometry.GetAttribute ( uint idx)

根据索引获取属性

参数
idxthe index

◆ GetSafeBoudingBox()

AABox AnyCAD.Foundation.BufferGeometry.GetSafeBoudingBox ( )

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

返回
包围

◆ HasAttribute()

bool AnyCAD.Foundation.BufferGeometry.HasAttribute ( EnumAttributeSemantic semantic)

是否存在属性

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

◆ HasColorAttribute()

bool AnyCAD.Foundation.BufferGeometry.HasColorAttribute ( )

是否有颜色属性

返回
true存在

◆ IsEmpty()

bool AnyCAD.Foundation.BufferGeometry.IsEmpty ( )

是否为空对象

返回
是否为空

◆ SetBoundingBox()

void AnyCAD.Foundation.BufferGeometry.SetBoundingBox ( AABox box)

设置包围盒

参数
box包围盒

◆ SetIndex() [1/2]

void AnyCAD.Foundation.BufferGeometry.SetIndex ( Uint16Buffer data)

设置顶点索引

参数
data数据

◆ SetIndex() [2/2]

void AnyCAD.Foundation.BufferGeometry.SetIndex ( Uint32Buffer data)

设置顶点索引

参数
data数据