AnyCAD Rapid API 2023
Help you to create a better world!
|
Public 成员函数 | |
boolean | Initialize (TopoShape shape1, TopoShape shape2, double tol, EnumExtremaType type) |
boolean | Initialize (TopoShape shape1, TopoShape shape2, double tol) |
double | GetMinimumDistance () |
boolean | IsInnerSolution () |
int | GetPointCount () |
GPnt | GetPointOnShape1 (int idx) |
GPnt | GetPointOnShape2 (int idx) |
TopoShape | GetSupportShape1 (int N) |
TopoShape | GetSupportShape2 (int N) |
double | GetParameterOnEdgeS1 (int N) |
double | GetParameterOnEdgeS2 (int N) |
GXY | GetParameterOnFaceS1 (int N) |
GXY | GetParameterOnFaceS2 (int N) |
<>
计算两个Shape之间的最小、最大距离.
double ExtremaShapeShape.GetMinimumDistance | ( | ) |
Get the minimum distance.
double ExtremaShapeShape.GetParameterOnEdgeS1 | ( | int | N | ) |
gives the corresponding parameter t if the Nth solution
is situated on an Egde of the first shape
N | the index. |
double ExtremaShapeShape.GetParameterOnEdgeS2 | ( | int | N | ) |
gives the corresponding parameter t if the Nth solution
is situated on an Egde of the first shape
N | the index. |
GXY ExtremaShapeShape.GetParameterOnFaceS1 | ( | int | N | ) |
gives the corresponding parameter t if the Nth solution
is situated on an Face of the first shape
N | the index. |
GXY ExtremaShapeShape.GetParameterOnFaceS2 | ( | int | N | ) |
gives the corresponding parameter t if the Nth solution
is situated on an Face of the first shape
N | the index. |
int ExtremaShapeShape.GetPointCount | ( | ) |
Get the extrema point count
GPnt ExtremaShapeShape.GetPointOnShape1 | ( | int | idx | ) |
Get the point on shape 1 by index
idx | the index. start from 0. |
GPnt ExtremaShapeShape.GetPointOnShape2 | ( | int | idx | ) |
Get the point on shape 2 by index
idx | the index. start from 0. |
TopoShape ExtremaShapeShape.GetSupportShape1 | ( | int | N | ) |
Gives the support where the Nth solution on the first shape is situated.
N | the index. start from 0. |
TopoShape ExtremaShapeShape.GetSupportShape2 | ( | int | N | ) |
Gives the support where the Nth solution on the first shape is situated.
N | the index. start from 0. |
初始化
shape1 | 几何1 |
shape2 | 几何2 |
tol | 误差 |
boolean ExtremaShapeShape.Initialize | ( | TopoShape | shape1, |
TopoShape | shape2, | ||
double | tol, | ||
EnumExtremaType | type | ||
) |
初始化
shape1 | 几何1 |
shape2 | 几何2 |
tol | 误差 |
type | 类型,默认最小距离 |
boolean ExtremaShapeShape.IsInnerSolution | ( | ) |
True if one of the shapes is a solid and the other shape
is completely or partially inside the solid.