|
AnyCAD Rapid API 2026
Help you to create a better world!
|
带材质的基本图元 更多...
Public 成员函数 | |
| PrimitiveShape (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| PrimitiveShape (BufferGeometry geometry) | |
| PrimitiveShape (BufferGeometry geometry, MaterialInstance material) | |
| PrimitiveShape (BufferGeometry geometry, MaterialInstance material, Vector3 color, byte lineWidth) | |
| PrimitiveShape (BufferGeometry geometry, MaterialInstance material, Vector3 color) | |
| uint | GetUserId () |
| void | SetUserId (uint val) |
| uint | GetDrawCount () |
| void | SetDrawCount (uint val) |
| Vector3 | GetUserColor () |
| void | SetUserColor (Vector3 val) |
| bool | GetVisible () |
| void | SetVisible (bool val) |
| byte | GetLineWidth () |
| void | SetLineWidth (byte val) |
| BufferGeometry | GetGeometry () |
| void | SetGeometry (BufferGeometry val) |
| MaterialInstance | GetMaterial () |
| void | SetMaterial (MaterialInstance val) |
| PrimitiveShape | Clone () |
| 复制对象 | |
| EnumPrimitiveType | GetPrimitiveType () |
| 图元类型 | |
| BufferAttribute | GetPositions () |
| 顶点位置属性 | |
| BufferAttribute | GetNormals () |
| 顶点法向属性。可选 | |
| BufferAttribute | GetTexCoords () |
| 顶点UV坐标。可选 | |
| BufferAttribute | GetColors () |
| 顶点颜色。可选 | |
| ElementAttribute | GetIndex () |
| 顶点索引。可选 | |
| AABox | GetBoundingBox () |
| 获取包围盒 | |
| void | UpdateBoundingBox () |
| 更新包围盒 | |
| bool | HasColorAttribute () |
| 判断是否存在颜色属性 | |
| void | Transform (Matrix4 trf) |
| 变换顶点属性 | |
| void | RequestUpdate () |
| 请求更新 | |
属性 | |
| static PrimitiveShape | NullPtr [get, set] |
带材质的基本图元
Group: Rendering
| AABox AnyCAD.Foundation.PrimitiveShape.GetBoundingBox | ( | ) |
获取包围盒
| BufferAttribute AnyCAD.Foundation.PrimitiveShape.GetColors | ( | ) |
顶点颜色。可选
| ElementAttribute AnyCAD.Foundation.PrimitiveShape.GetIndex | ( | ) |
顶点索引。可选
| BufferAttribute AnyCAD.Foundation.PrimitiveShape.GetNormals | ( | ) |
顶点法向属性。可选
| BufferAttribute AnyCAD.Foundation.PrimitiveShape.GetPositions | ( | ) |
顶点位置属性
| EnumPrimitiveType AnyCAD.Foundation.PrimitiveShape.GetPrimitiveType | ( | ) |
图元类型
| BufferAttribute AnyCAD.Foundation.PrimitiveShape.GetTexCoords | ( | ) |
顶点UV坐标。可选
| bool AnyCAD.Foundation.PrimitiveShape.HasColorAttribute | ( | ) |
判断是否存在颜色属性
| void AnyCAD.Foundation.PrimitiveShape.Transform | ( | Matrix4 | trf | ) |
变换顶点属性
| trf |