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

Public 成员函数

double GetTolerance ()
 
void SetTolerance (double val)
 
boolean Initialize (TopoShape edge1, TopoShape edge2)
 
boolean InitializeByEdges (TopoShape edge1, TopoShape edge2)
 
boolean Initialize (GPnt2d pt, GVec2d dir, TopoShape curve)
 
boolean InitializeByRay (GPnt2d pt, GVec2d dir, TopoShape curve)
 
boolean InitializeByLineLine (GLin2d line1, GLin2d line2)
 
boolean InitializeByLineLine (GPnt2d s1, GPnt2d e1, GPnt2d s2, GPnt2d e2)
 
boolean Initialize (ParametricCurve2d c1, ParametricCurve2d c2)
 
boolean InitializeByCurves (ParametricCurve2d curve1, ParametricCurve2d curve2)
 
GPnt2dList GetPoints ()
 
int GetPointCount ()
 
GPnt2d GetPoint (int idx)
 
double GetParameter1 (int idx)
 
double GetParameter2 (int idx)
 

详细描述

<> Intersection testing between curve and curve.

成员函数说明

◆ GetParameter1()

double IntersectCurveCurve2d.GetParameter1 ( int idx)

获取在第一条线上的参数

参数
idx索引
返回
参数

◆ GetParameter2()

double IntersectCurveCurve2d.GetParameter2 ( int idx)

获取在第二条线上的参数

参数
idx索引
返回
参数

◆ GetPoint()

GPnt2d IntersectCurveCurve2d.GetPoint ( int idx)

获取第idx个点,[0, GetPointCount())

参数
idx索引,从0开始
返回

◆ GetPointCount()

int IntersectCurveCurve2d.GetPointCount ( )

获取个数

返回
个数

◆ GetPoints()

GPnt2dList IntersectCurveCurve2d.GetPoints ( )

获取所有的相交点

返回
二维点列表

◆ Initialize() [1/3]

boolean IntersectCurveCurve2d.Initialize ( GPnt2d pt,
GVec2d dir,
TopoShape curve )

二维直线与任意二维曲线相交

参数
pt直线端点
dir直线方向
curve曲线shape

返回
计算成功与否

◆ Initialize() [2/3]

boolean IntersectCurveCurve2d.Initialize ( ParametricCurve2d c1,
ParametricCurve2d c2 )

使用二维的曲线初始化

参数
c1曲线1
c2曲线2
返回

◆ Initialize() [3/3]

boolean IntersectCurveCurve2d.Initialize ( TopoShape edge1,
TopoShape edge2 )

使用二维的边初始化

参数
edge1<br>
edge2<br>
返回

◆ InitializeByLineLine() [1/2]

boolean IntersectCurveCurve2d.InitializeByLineLine ( GLin2d line1,
GLin2d line2 )

二维直线与二维直线相交

参数
line1二维直线1
line2二维直线2
返回
计算成功与否

◆ InitializeByLineLine() [2/2]

boolean IntersectCurveCurve2d.InitializeByLineLine ( GPnt2d s1,
GPnt2d e1,
GPnt2d s2,
GPnt2d e2 )

二维直线与二维直线相交

参数
s1二维直线1起点
e1二维直线1终点
s2二维直线2起点
e2二维直线2终点
返回
计算成功与否