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

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之间的最小、最大距离.

成员函数说明

◆ GetMinimumDistance()

double ExtremaShapeShape.GetMinimumDistance ( )

Get the minimum distance.

返回
the distance.

◆ GetParameterOnEdgeS1()

double ExtremaShapeShape.GetParameterOnEdgeS1 ( int  N)

gives the corresponding parameter t if the Nth solution
is situated on an Egde of the first shape

参数
Nthe index.
返回
the parameter

◆ GetParameterOnEdgeS2()

double ExtremaShapeShape.GetParameterOnEdgeS2 ( int  N)

gives the corresponding parameter t if the Nth solution
is situated on an Egde of the first shape

参数
Nthe index.
返回
the parameter

◆ GetParameterOnFaceS1()

GXY ExtremaShapeShape.GetParameterOnFaceS1 ( int  N)

gives the corresponding parameter t if the Nth solution
is situated on an Face of the first shape

参数
Nthe index.
返回
the parameter

◆ GetParameterOnFaceS2()

GXY ExtremaShapeShape.GetParameterOnFaceS2 ( int  N)

gives the corresponding parameter t if the Nth solution
is situated on an Face of the first shape

参数
Nthe index.
返回
the parameter

◆ GetPointCount()

int ExtremaShapeShape.GetPointCount ( )

Get the extrema point count

返回
the count.

◆ GetPointOnShape1()

GPnt ExtremaShapeShape.GetPointOnShape1 ( int  idx)

Get the point on shape 1 by index

参数
idxthe index. start from 0.
返回
the Point.

◆ GetPointOnShape2()

GPnt ExtremaShapeShape.GetPointOnShape2 ( int  idx)

Get the point on shape 2 by index

参数
idxthe index. start from 0.
返回
the Point.

◆ GetSupportShape1()

TopoShape ExtremaShapeShape.GetSupportShape1 ( int  N)

Gives the support where the Nth solution on the first shape is situated.

参数
Nthe index. start from 0.
返回
the support which can be a Vertex, an Edge or a Face.

◆ GetSupportShape2()

TopoShape ExtremaShapeShape.GetSupportShape2 ( int  N)

Gives the support where the Nth solution on the first shape is situated.

参数
Nthe index. start from 0.
返回
the support which can be a Vertex, an Edge or a Face.

◆ Initialize() [1/2]

boolean ExtremaShapeShape.Initialize ( TopoShape  shape1,
TopoShape  shape2,
double  tol 
)

初始化

参数
shape1几何1
shape2几何2
tol误差

返回
是否成功

◆ Initialize() [2/2]

boolean ExtremaShapeShape.Initialize ( TopoShape  shape1,
TopoShape  shape2,
double  tol,
EnumExtremaType  type 
)

初始化

参数
shape1几何1
shape2几何2
tol误差
type类型,默认最小距离
返回
是否成功

◆ IsInnerSolution()

boolean ExtremaShapeShape.IsInnerSolution ( )

True if one of the shapes is a solid and the other shape
is completely or partially inside the solid.

返回
true if ....