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

Public 成员函数

boolean Initialize (TopoShape edge1, TopoShape edge2)
 
boolean Initialize (GLin line1, GLin line2)
 
boolean Initialize (ParametricCurve c1, ParametricCurve c2)
 
boolean InitializeByLines (GLin line1, GLin line2)
 
boolean InitializeByCurves (ParametricCurve c1, ParametricCurve c2)
 
boolean InitializeByEdges (TopoShape edge1, TopoShape edge2)
 
int GetPointCount ()
 
GPnt GetPoint1 (int idx)
 
GPnt GetPoint2 (int idx)
 
double GetParameter1 (int idx)
 
double GetParameter2 (int idx)
 
double GetSquareDistance (int idx)
 
boolean IsParallel ()
 

详细描述

<>
计算曲线之间的最大最小距离.

成员函数说明

◆ GetParameter1()

double ExtremaCurveCurve.GetParameter1 ( int idx)

Get parameter by index

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

◆ GetPoint1()

GPnt ExtremaCurveCurve.GetPoint1 ( int idx)

Get the point by index

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

◆ GetPointCount()

int ExtremaCurveCurve.GetPointCount ( )

获取极值的个数

返回
the count.

◆ GetSquareDistance()

double ExtremaCurveCurve.GetSquareDistance ( int idx)

Get the square distance by index

参数
idxthe index. start from 0.
返回
the squre distance.

◆ Initialize() [1/3]

boolean ExtremaCurveCurve.Initialize ( GLin line1,
GLin line2 )

使用直线初始化

参数
line1直线
line2直线
返回
是否存在极值

◆ Initialize() [2/3]

boolean ExtremaCurveCurve.Initialize ( ParametricCurve c1,
ParametricCurve c2 )

使用曲线初始化

参数
c1曲线1
c2曲线2
返回
是否存在

◆ Initialize() [3/3]

boolean ExtremaCurveCurve.Initialize ( TopoShape edge1,
TopoShape edge2 )

初始化

参数
edge1曲线1
edge2曲线2
返回
是否成功

◆ IsParallel()

boolean ExtremaCurveCurve.IsParallel ( )

是否平行

返回
true 如果平行