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

带材质的基本图元 更多...

类 AnyCAD.Foundation.PrimitiveShape 继承关系图:

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

成员函数说明

◆ GetBoundingBox()

AABox AnyCAD.Foundation.PrimitiveShape.GetBoundingBox ( )

获取包围盒

返回

◆ GetColors()

BufferAttribute AnyCAD.Foundation.PrimitiveShape.GetColors ( )

顶点颜色。可选

返回

◆ GetIndex()

ElementAttribute AnyCAD.Foundation.PrimitiveShape.GetIndex ( )

顶点索引。可选

返回
顶点索引属性

◆ GetNormals()

BufferAttribute AnyCAD.Foundation.PrimitiveShape.GetNormals ( )

顶点法向属性。可选

返回
法向

◆ GetPositions()

BufferAttribute AnyCAD.Foundation.PrimitiveShape.GetPositions ( )

顶点位置属性

返回
位置属性

◆ GetPrimitiveType()

EnumPrimitiveType AnyCAD.Foundation.PrimitiveShape.GetPrimitiveType ( )

图元类型

返回
类型

◆ GetTexCoords()

BufferAttribute AnyCAD.Foundation.PrimitiveShape.GetTexCoords ( )

顶点UV坐标。可选

返回
UV坐标

◆ HasColorAttribute()

bool AnyCAD.Foundation.PrimitiveShape.HasColorAttribute ( )

判断是否存在颜色属性

返回
true则存在

◆ Transform()

void AnyCAD.Foundation.PrimitiveShape.Transform ( Matrix4 trf)

变换顶点属性

参数
trf