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.
Real AnyCAD::API::IntersectionLineSurface::GetParameterU | ( | int | idx | ) | const |
Get u parameter by index
idx | the index. start from 1. |
Real AnyCAD::API::IntersectionLineSurface::GetParameterV | ( | int | idx | ) | const |
Get v parameter by index
idx | the index. start from 1. |
Real AnyCAD::API::IntersectionLineSurface::GetParameterW | ( | int | idx | ) | const |
The parameter for the line
idx | the index. start from 1. |
Vector3 AnyCAD::API::IntersectionLineSurface::GetPoint | ( | int | idx | ) | const |
Get the point by index
idx | the index. start from 1. |
int AnyCAD::API::IntersectionLineSurface::GetPointCount | ( | ) | const |
Get the intersection point count
bool AnyCAD::API::IntersectionLineSurface::Perform | ( | const Ray & | ray | ) |
Intersection test by ray
ray | the ray. |
bool AnyCAD::API::IntersectionLineSurface::Perform | ( | const TopoShape & | curve, |
Real | startParam, | ||
Real | endParam | ||
) |
Intersection test by curve
curve | the curve. |
startParam | the start parameter which can be -INF |
endParam | the end parameter which can be +INF |
void AnyCAD::API::IntersectionLineSurface::SetSurface | ( | const TopoShape & | surface | ) |
Initialize the algorithm with surface
surface | must be face |