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

复合形状. 更多...

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

Public 成员函数

 CompoundShape (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
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, uint 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, byte lineWidth)
 添加形状.
 
void AddGeometryWithColor (BufferGeometry geometry, MaterialInstance material, Vector3 color, byte lineWidth)
 
uint GetCount ()
 获取形状数量.
 
PrimitiveShape GetPrimitive (uint idx)
 获取形状.
 

详细描述

复合形状.

Group: Rendering

成员函数说明

◆ Add() [1/3]

void AnyCAD.Foundation.CompoundShape.Add ( BufferGeometry geometry,
MaterialInstance material )

添加形状.

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

◆ Add() [2/3]

void AnyCAD.Foundation.CompoundShape.Add ( BufferGeometry geometry,
MaterialInstance material,
Vector3 color,
byte lineWidth )

添加形状.

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

◆ Add() [3/3]

void AnyCAD.Foundation.CompoundShape.Add ( PrimitiveShape shape)

添加形状.

参数
shape形状.

◆ GetCount()

uint AnyCAD.Foundation.CompoundShape.GetCount ( )

获取形状数量.

返回
形状数量.

◆ GetPrimitive()

PrimitiveShape AnyCAD.Foundation.CompoundShape.GetPrimitive ( uint idx)

获取形状.

参数
idx索引.

◆ SetColor()

void AnyCAD.Foundation.CompoundShape.SetColor ( Vector3 color)

设置颜色.

参数
color颜色.

◆ SetMaterial()

void AnyCAD.Foundation.CompoundShape.SetMaterial ( MaterialInstance material)

设置材质.

参数
material材质.