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