AnyCAD Rapid API 2023
Help you to create a better world!
|
Public 成员函数 | |
BufferShape (TopoShape shape, MaterialInstance faceMaterial, MaterialInstance edgeMaterial, double deflection) | |
PrimitiveShapeList | GetFaces () |
PrimitiveShapeList | GetEdges () |
boolean | Build () |
boolean | ComputeLineDistances () |
int | GetFaceIndex (int faceTopoId) |
void | SetFaceMaterial (MaterialInstance material) |
void | SetFaceMaterial (long idx, MaterialInstance material) |
int | GetEdgeIndex (int edgeTopoId) |
void | SetEdgeMaterial (MaterialInstance material) |
void | SetEdgeMaterial (long idx, MaterialInstance material) |
long | GetFaceCount () |
void | SetVertexColors (long faceIdx, Float32Buffer colorBuffer) |
void | ComputeBoundingBox () |
void | Transform (Matrix4 trf) |
Float32Array | GetUV (long faceId) |
BufferShape | CloneMe () |
Public 成员函数 继承自 GRepShape | |
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 BufferShape | Cast (GRepShape bs) |
静态 Public 成员函数 继承自 GRepShape | |
static GRepShape | Create (TopoShape shape, MaterialInstance material, MaterialInstance edgeMaterial, double deflection, boolean optimized) |
static GRepShape | Create (boolean optimized) |
<>
BufferShape
The bridge between BufferGeometry and SceneNode.
boolean BufferShape.Build | ( | ) |
void BufferShape.ComputeBoundingBox | ( | ) |
计算包围盒
重载 GRepShape .
boolean BufferShape.ComputeLineDistances | ( | ) |
int BufferShape.GetEdgeIndex | ( | int | edgeTopoId | ) |
long BufferShape.GetFaceCount | ( | ) |
int BufferShape.GetFaceIndex | ( | int | faceTopoId | ) |
Float32Array BufferShape.GetUV | ( | long | faceId | ) |
void BufferShape.SetEdgeMaterial | ( | long | idx, |
MaterialInstance | material | ||
) |
void BufferShape.SetEdgeMaterial | ( | MaterialInstance | material | ) |
void BufferShape.SetFaceMaterial | ( | long | idx, |
MaterialInstance | material | ||
) |
void BufferShape.SetFaceMaterial | ( | MaterialInstance | material | ) |