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

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

#include <APIIntersectionLineSurface.h>

Public 成员函数

void SetSurface (const TopoShape &surface)
 
bool Perform (const Ray &ray)
 
bool Perform (const TopoShape &curve, Real startParam, Real endParam)
 
int GetPointCount () const
 
Vector3 GetPoint (int idx) const
 
Real GetParameterU (int idx) const
 
Real GetParameterV (int idx) const
 
Real GetParameterW (int idx) const
 
Vector3 GetNearestPoint () const
 

详细描述

Intersection testing for line and surface.

成员函数说明

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

The nearest intersection point.

返回
the point.
Real AnyCAD::API::IntersectionLineSurface::GetParameterU ( int  idx) const

Get u parameter by index

参数
idxthe index. start from 1.
返回
the u.
Real AnyCAD::API::IntersectionLineSurface::GetParameterV ( int  idx) const

Get v parameter by index

参数
idxthe index. start from 1.
返回
the v.
Real AnyCAD::API::IntersectionLineSurface::GetParameterW ( int  idx) const

The parameter for the line

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

Get the point by index

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

Get the intersection point count

返回
the count.
bool AnyCAD::API::IntersectionLineSurface::Perform ( const Ray ray)

Intersection test by ray

参数
raythe ray.
返回
true if intersected.
bool AnyCAD::API::IntersectionLineSurface::Perform ( const TopoShape curve,
Real  startParam,
Real  endParam 
)

Intersection test by curve

参数
curvethe curve.
startParamthe start parameter which can be -INF
endParamthe end parameter which can be +INF
返回
true if intersected.
void AnyCAD::API::IntersectionLineSurface::SetSurface ( const TopoShape surface)

Initialize the algorithm with surface

参数
surfacemust be face

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