AnyCAD Rapid API 2023
Help you to create a better world!
|
Public 成员函数 | |
AABox | GetBoundingBox () |
void | SetBoundingBox (AABox val) |
double | GetDeflection () |
void | SetDeflection (double val) |
boolean | GetBuildVertex () |
void | SetBuildVertex (boolean val) |
EnumShapeFilter | GetDisplayFilter () |
void | SetDisplayFilter (EnumShapeFilter val) |
boolean | GetChildrenPickable () |
void | SetChildrenPickable (boolean val) |
MaterialInstance | GetEdgeMaterial () |
MaterialInstance | GetFaceMaterial () |
TopoShape | GetShape () |
boolean | GetReady () |
GRepShape | Clone () |
boolean | IsNull () |
boolean | Build () |
void | SetShape (TopoShape shape, boolean update) |
void | SetShape (TopoShape shape) |
int | GetFaceIndex (int faceTopoId) |
long | GetFaceCount () |
void | SetFaceMaterial (MaterialInstance material) |
void | SetFaceMaterial (long idx, MaterialInstance material) |
int | GetEdgeIndex (int edgeTopoId) |
long | GetEdgeCount () |
void | SetEdgeMaterial (MaterialInstance material) |
void | SetEdgeMaterial (long idx, MaterialInstance material) |
void | RequestUpdate () |
boolean | ComputeLineDistances () |
void | ComputeBoundingBox () |
void | Transform (Matrix4 trf) |
Float32Array | GetUV (long faceId) |
静态 Public 成员函数 | |
static GRepShape | Create (TopoShape shape, MaterialInstance material, MaterialInstance edgeMaterial, double deflection, boolean optimized) |
static GRepShape | Create (boolean optimized) |
<> GRepShape
基于TopoShape生成显示对象,以便在引擎中显示。 创建后调用对象的Build方法进行离散。
boolean GRepShape.Build | ( | ) |
GRepShape GRepShape.Clone | ( | ) |
复制一份,共享离散数据。
void GRepShape.ComputeBoundingBox | ( | ) |
计算包围盒
被 BatchedBufferShape , 以及 BufferShape 重载.
boolean GRepShape.ComputeLineDistances | ( | ) |
|
static |
创建空的GRep对象。
optimized |
|
static |
创建GRepShape实例,生成后需要调用Build来生成显示对象
shape | 几何拓扑对象 |
material | 面材质 |
edgeMaterial | 边线材质 |
deflection | 显示精度 |
optimized | 是否需要优化显示性能。对于有多个面、边的对象,建议开启优化,简单的无需开启。 |
long GRepShape.GetEdgeCount | ( | ) |
int GRepShape.GetEdgeIndex | ( | int | edgeTopoId | ) |
long GRepShape.GetFaceCount | ( | ) |
int GRepShape.GetFaceIndex | ( | int | faceTopoId | ) |
Float32Array GRepShape.GetUV | ( | long | faceId | ) |
boolean GRepShape.IsNull | ( | ) |
是否为空
void GRepShape.RequestUpdate | ( | ) |
请求更新重新生成对象.
void GRepShape.SetEdgeMaterial | ( | long | idx, |
MaterialInstance | material | ||
) |
void GRepShape.SetEdgeMaterial | ( | MaterialInstance | material | ) |
void GRepShape.SetFaceMaterial | ( | long | idx, |
MaterialInstance | material | ||
) |
void GRepShape.SetFaceMaterial | ( | MaterialInstance | material | ) |
void GRepShape.SetShape | ( | TopoShape | shape | ) |
更新TopoShape。
shape | the new shape. |
void GRepShape.SetShape | ( | TopoShape | shape, |
boolean | update | ||
) |
更新TopoShape。
shape | the new shape. |
update | request update. |
void GRepShape.Transform | ( | Matrix4 | trf | ) |