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

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)
 
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 ()
 

详细描述

<> 带材质的基本图元

成员函数说明

◆ Clone()

PrimitiveShape PrimitiveShape.Clone ( )

复制对象

◆ GetBoundingBox()

AABox PrimitiveShape.GetBoundingBox ( )

获取包围盒

返回

◆ GetColors()

BufferAttribute PrimitiveShape.GetColors ( )

顶点颜色。可选

返回

◆ GetIndex()

ElementAttribute PrimitiveShape.GetIndex ( )

顶点索引。可选

返回
顶点索引属性

◆ GetNormals()

BufferAttribute PrimitiveShape.GetNormals ( )

顶点法向属性。可选

返回
法向

◆ GetPositions()

BufferAttribute PrimitiveShape.GetPositions ( )

顶点位置属性

返回
位置属性

◆ GetPrimitiveType()

EnumPrimitiveType PrimitiveShape.GetPrimitiveType ( )

图元类型

返回
类型

◆ GetTexCoords()

BufferAttribute PrimitiveShape.GetTexCoords ( )

顶点UV坐标。可选

返回
UV坐标

◆ HasColorAttribute()

boolean PrimitiveShape.HasColorAttribute ( )

判断是否存在颜色属性

返回
true则存在

◆ RequestUpdate()

void PrimitiveShape.RequestUpdate ( )

请求更新

◆ Transform()

void PrimitiveShape.Transform ( Matrix4 trf)

变换顶点属性

参数
trf

◆ UpdateBoundingBox()

void PrimitiveShape.UpdateBoundingBox ( )

更新包围盒