AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::IntersectionLineCurve类 参考

Intersection testing for line and curve. 更多...

#include <APIIntersectionLineCurve.h>

Public 成员函数

void SetCurve (const TopoShape &curve)
 
bool Perform (const Ray &ray)
 
bool Perform (const TopoShape &curve)
 
int GetPointCount () const
 
Vector3 GetPoint (int idx) const
 
Real GetParameter (int idx) const
 
Real GetSquareDistance (int idx) const
 
Vector3 GetNearestPoint () const
 

详细描述

Intersection testing for line and curve.

成员函数说明

Vector3 AnyCAD::API::IntersectionLineCurve::GetNearestPoint ( ) const

The nearest intersection point.

返回
the point.
Real AnyCAD::API::IntersectionLineCurve::GetParameter ( int  idx) const

Get parameter by index

参数
idxthe index. start from 1.
返回
the parameter.
Vector3 AnyCAD::API::IntersectionLineCurve::GetPoint ( int  idx) const

Get the point by index

参数
idxthe index. start from 1.
返回
the Point.
int AnyCAD::API::IntersectionLineCurve::GetPointCount ( ) const

Get the intersection point count

返回
the count.
Real AnyCAD::API::IntersectionLineCurve::GetSquareDistance ( int  idx) const

Get the square distance by index

参数
idxthe index. start from 1.
返回
the squre distance.
bool AnyCAD::API::IntersectionLineCurve::Perform ( const Ray ray)

Intersection test by ray

参数
raythe ray.
返回
true if intersected.
bool AnyCAD::API::IntersectionLineCurve::Perform ( const TopoShape curve)

Intersection test by curve

参数
curvethe curve.
返回
true if intersected.
void AnyCAD::API::IntersectionLineCurve::SetCurve ( const TopoShape curve)

Initialize the algorithm with edge

参数
curvemust be edge

该类的文档由以下文件生成: