|
AnyCAD Rapid API 2024
Help you to create a better world!
|
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 | 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) |
| boolean | HasColorAttribute () |
| boolean | HasAttribute (EnumAttributeSemantic semantic) |
| void | ComputeBoundingBox () |
| AABox | GetSafeBoudingBox () |
Public 成员函数 继承自 GfxObject | |
| long | GetUuid () |
<> 图元几何对象.
| void BufferGeometry.AddAttribute | ( | EnumAttributeSemantic | loc, |
| EnumAttributeComponents | component, | ||
| ArrayBuffer | data ) |
添加属性
| loc | 位置 |
| component | 每个顶点对应几个数据 |
| data | 数据 |
| void BufferGeometry.AddAttribute | ( | EnumAttributeSemantic | loc, |
| EnumAttributeComponents | component, | ||
| ArrayBufferView | data ) |
添加属性
| loc | 位置 |
| component | 每个顶点对应几个数据 |
| data | 数据 |
| void BufferGeometry.ComputeBoundingBox | ( | ) |
计算包围盒
| BufferAttribute BufferGeometry.FindAttribute | ( | EnumAttributeSemantic | location | ) |
根据位置查找属性
| location | 位置 |
| BufferAttribute BufferGeometry.GetAttribute | ( | long | idx | ) |
根据索引获取属性
| idx | the index |
| AABox BufferGeometry.GetSafeBoudingBox | ( | ) |
获取包围盒。若不存在,则从顶点计算
| long BufferGeometry.GetVertexCount | ( | ) |
顶点个数
| boolean BufferGeometry.HasAttribute | ( | EnumAttributeSemantic | semantic | ) |
是否存在属性
| semantic | 属性类型 |
| boolean BufferGeometry.HasColorAttribute | ( | ) |
是否有颜色属性
| boolean BufferGeometry.IsEmpty | ( | ) |
是否为孔对象
| void BufferGeometry.RequestUpdate | ( | ) |
更新
| void BufferGeometry.SetBoundingBox | ( | AABox | box | ) |
设置包围盒
| box | 包围盒 |
| void BufferGeometry.SetIndex | ( | Uint16Buffer | data | ) |
设置顶点索引
| data | 数据 |
| void BufferGeometry.SetIndex | ( | Uint32Buffer | data | ) |
设置顶点索引
| data | 数据 |