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

Public 成员函数

boolean Initialize (TopoShape edge, GPnt pt)
 
boolean Initialize (TopoShape edge, TopoShape pt)
 
int GetPointCount ()
 
boolean IsMin (int idx)
 
GPnt GetPoint (int idx)
 
double GetParameter (int idx)
 
double GetSquareDistance (int idx)
 
double GetMinimumSquareDistance ()
 
GPnt GetMinimumDistancePoint ()
 
double GetMinimumDistanceParameter ()
 

详细描述

<>
计算点与曲线的最大和最小距离.

成员函数说明

◆ GetMinimumDistanceParameter()

double ExtremaPointCurve.GetMinimumDistanceParameter ( )

get the neasrest point's parameter

返回

◆ GetMinimumDistancePoint()

GPnt ExtremaPointCurve.GetMinimumDistancePoint ( )

Get the neasrest point

返回

◆ GetMinimumSquareDistance()

double ExtremaPointCurve.GetMinimumSquareDistance ( )

Get the minimum square distance

返回

◆ GetParameter()

double ExtremaPointCurve.GetParameter ( int  idx)

Get parameter by index

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

◆ GetPoint()

GPnt ExtremaPointCurve.GetPoint ( int  idx)

Get the point by index

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

◆ GetPointCount()

int ExtremaPointCurve.GetPointCount ( )

Get the extrema point count

返回
the count.

◆ GetSquareDistance()

double ExtremaPointCurve.GetSquareDistance ( int  idx)

Get the square distance by index

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

◆ Initialize()

boolean ExtremaPointCurve.Initialize ( TopoShape  edge,
GPnt  pt 
)

初始化

参数
edge曲线
pt
返回
是否成功

◆ IsMin()

boolean ExtremaPointCurve.IsMin ( int  idx)

idx extremum distance is a minimum

参数
idxthe index
返回
true if it's minimun.