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.
Real AnyCAD::API::IntersectionLineCurve::GetParameter | ( | int | idx | ) | const |
Get parameter by index
idx | the index. start from 1. |
Vector3 AnyCAD::API::IntersectionLineCurve::GetPoint | ( | int | idx | ) | const |
Get the point by index
idx | the index. start from 1. |
int AnyCAD::API::IntersectionLineCurve::GetPointCount | ( | ) | const |
Get the intersection point count
Real AnyCAD::API::IntersectionLineCurve::GetSquareDistance | ( | int | idx | ) | const |
Get the square distance by index
idx | the index. start from 1. |
bool AnyCAD::API::IntersectionLineCurve::Perform | ( | const Ray & | ray | ) |
Intersection test by ray
ray | the ray. |
bool AnyCAD::API::IntersectionLineCurve::Perform | ( | const TopoShape & | curve | ) |
Intersection test by curve
curve | the curve. |
void AnyCAD::API::IntersectionLineCurve::SetCurve | ( | const TopoShape & | curve | ) |
Initialize the algorithm with edge
curve | must be edge |