AnyCAD Rapid API 2024
Help you to create a better world!
|
Public 成员函数 | |
PrimitiveShape (BufferGeometry geometry) | |
PrimitiveShape (BufferGeometry geometry, MaterialInstance material) | |
PrimitiveShape (BufferGeometry geometry, MaterialInstance material, Vector3 color) | |
long | GetUserId () |
void | SetUserId (long val) |
long | GetDrawCount () |
void | SetDrawCount (long val) |
Vector3 | GetUserColor () |
void | SetUserColor (Vector3 val) |
boolean | GetVisible () |
void | SetVisible (boolean val) |
BufferGeometry | GetGeometry () |
void | SetGeometry (BufferGeometry val) |
MaterialInstance | GetMaterial () |
void | SetMaterial (MaterialInstance val) |
PrimitiveShape | Clone () |
EnumPrimitiveType | GetPrimitiveType () |
BufferAttribute | GetPositions () |
BufferAttribute | GetNormals () |
BufferAttribute | GetTexCoords () |
BufferAttribute | GetColors () |
ElementAttribute | GetIndex () |
AABox | GetBoundingBox () |
void | UpdateBoundingBox () |
boolean | HasColorAttribute () |
void | Transform (Matrix4 trf) |
void | RequestUpdate () |
静态 Public 成员函数 | |
static void | setNullPtr (PrimitiveShape value) |
static PrimitiveShape | getNullPtr () |
<> 带材质的基本图元
PrimitiveShape PrimitiveShape.Clone | ( | ) |
复制对象
AABox PrimitiveShape.GetBoundingBox | ( | ) |
获取包围盒
BufferAttribute PrimitiveShape.GetColors | ( | ) |
顶点颜色。可选
ElementAttribute PrimitiveShape.GetIndex | ( | ) |
顶点索引。可选
BufferAttribute PrimitiveShape.GetNormals | ( | ) |
顶点法向属性。可选
BufferAttribute PrimitiveShape.GetPositions | ( | ) |
顶点位置属性
EnumPrimitiveType PrimitiveShape.GetPrimitiveType | ( | ) |
图元类型
BufferAttribute PrimitiveShape.GetTexCoords | ( | ) |
顶点UV坐标。可选
boolean PrimitiveShape.HasColorAttribute | ( | ) |
判断是否存在颜色属性
void PrimitiveShape.RequestUpdate | ( | ) |
请求更新
void PrimitiveShape.Transform | ( | Matrix4 | trf | ) |
变换顶点属性
trf |
void PrimitiveShape.UpdateBoundingBox | ( | ) |
更新包围盒