AnyCAD Rapid API 2024
Help you to create a better world!
|
Public 成员函数 | |
double | GetTolerance () |
void | SetTolerance (double val) |
GBBox | GetBoundingBox () |
boolean | AddShape (TopoShape shape) |
void | Build () |
long | GetFaceCount () |
ParametricSurface | GetFace (long faceIdx) |
GBBox | GetFaceBBox (long faceIdx) |
long | GetEdgeCountOfFace (long faceIdx) |
ParametricCurve | GetEdgeOfFace (long faceIdx, long edgeIdx) |
long | GetEdgeCount () |
ParametricCurve | GetEdge (long idx) |
long | GetFaceOfEdge (long idx) |
boolean | IsEdgeOnFace (long edgeIdx, long faceIdx) |
Uint32List | FindSiblingFacesByHints (long edgeIdx, Uint32List candidateFaceIds) |
Uint32List | FindSiblingFaces (long edgeIdx) |
int | IsSiblingEdges (long edgeIdxA, long edgeIdxB) |
EdgeVertex | GetStartVertexOfEdge (long edgeIdx) |
EdgeVertex | GetEndVertexOfEdge (long edgeIdx) |
long | GetVertexCount () |
EdgeVertex | GetVertex (long vertexIdx) |
Uint32List | GetConnectedVertices (long vertexIdx) |
<>
辅助类用来高效地遍历边和面的几何拓扑关系
boolean ShapeExplor.AddShape | ( | TopoShape | shape | ) |
添加几何对象,必须为面、体、复合体
shape | 几何对象 |
void ShapeExplor.Build | ( | ) |
构建关系。
Uint32List ShapeExplor.FindSiblingFaces | ( | long | edgeIdx | ) |
Uint32List ShapeExplor.FindSiblingFacesByHints | ( | long | edgeIdx, |
Uint32List | candidateFaceIds ) |
Uint32List ShapeExplor.GetConnectedVertices | ( | long | vertexIdx | ) |
获取与顶点相链接的点的列表
vertexIdx | 顶点索引 |
ParametricCurve ShapeExplor.GetEdge | ( | long | idx | ) |
long ShapeExplor.GetEdgeCount | ( | ) |
获取边的个数
long ShapeExplor.GetEdgeCountOfFace | ( | long | faceIdx | ) |
获取某个面包含的边的数量
faceIdx | 面的索引 |
ParametricCurve ShapeExplor.GetEdgeOfFace | ( | long | faceIdx, |
long | edgeIdx ) |
EdgeVertex ShapeExplor.GetEndVertexOfEdge | ( | long | edgeIdx | ) |
ParametricSurface ShapeExplor.GetFace | ( | long | faceIdx | ) |
GBBox ShapeExplor.GetFaceBBox | ( | long | faceIdx | ) |
获取面的包围盒
faceIdx | 面的索引 |
long ShapeExplor.GetFaceCount | ( | ) |
获取面的个数
long ShapeExplor.GetFaceOfEdge | ( | long | idx | ) |
EdgeVertex ShapeExplor.GetStartVertexOfEdge | ( | long | edgeIdx | ) |
EdgeVertex ShapeExplor.GetVertex | ( | long | vertexIdx | ) |
long ShapeExplor.GetVertexCount | ( | ) |
获取顶的个数
boolean ShapeExplor.IsEdgeOnFace | ( | long | edgeIdx, |
long | faceIdx ) |
int ShapeExplor.IsSiblingEdges | ( | long | edgeIdxA, |
long | edgeIdxB ) |
判断两条边是否为临边