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

Public 成员函数

String GetName ()
 
void SetName (String val)
 
PrimitiveShapeList GetShapes ()
 
AABox GetBoundingBox ()
 
void SetBoundingBox (AABox val)
 
CompoundShape Clone ()
 
void SetMaterial (MaterialInstance material)
 
void SetColor (Vector3 color)
 
void UpdateBoundingBox ()
 
void AddTargetName (String name, long id)
 
void UpdateMorphTargets ()
 
void Clear ()
 
void Add (PrimitiveShape shape)
 
void AddPrimitive (PrimitiveShape shape)
 
void Add (BufferGeometry geometry, MaterialInstance material)
 
void AddGeometry (BufferGeometry geometry, MaterialInstance material)
 
void Add (BufferGeometry geometry, MaterialInstance material, Vector3 color)
 
void AddGeometryWithColor (BufferGeometry geometry, MaterialInstance material, Vector3 color)
 
long GetCount ()
 
PrimitiveShape GetPrimitive (long idx)
 

详细描述

<> 复合形状.

成员函数说明

◆ Add() [1/3]

void CompoundShape.Add ( BufferGeometry geometry,
MaterialInstance material )

添加形状.

参数
geometry几何图形.
material材质.

◆ Add() [2/3]

void CompoundShape.Add ( BufferGeometry geometry,
MaterialInstance material,
Vector3 color )

添加形状.

参数
geometry几何图形.
material材质.
color颜色.

◆ Add() [3/3]

void CompoundShape.Add ( PrimitiveShape shape)

添加形状.

参数
shape形状.

◆ GetCount()

long CompoundShape.GetCount ( )

获取形状数量.

返回
形状数量.

◆ GetPrimitive()

PrimitiveShape CompoundShape.GetPrimitive ( long idx)

获取形状.

参数
idx索引.

◆ SetColor()

void CompoundShape.SetColor ( Vector3 color)

设置颜色.

参数
color颜色.

◆ SetMaterial()

void CompoundShape.SetMaterial ( MaterialInstance material)

设置材质.

参数
material材质.

◆ UpdateBoundingBox()

void CompoundShape.UpdateBoundingBox ( )

更新包围盒.