AnyCAD SDK PRO
2020
The Professional Graphics SDK for .Net and C++ Developers
|
Intersection testing for line and surface. 更多...
Public 成员函数 | |
void | SetSurface (TopoShape^ surface) |
bool | Perform (Ray^ ray) |
bool | Perform (TopoShape^ curve, Real startParam, Real endParam) |
int | GetPointCount () |
Vector3^ | GetPoint (int idx) |
Real | GetParameterU (int idx) |
Real | GetParameterV (int idx) |
Real | GetParameterW (int idx) |
Vector3^ | GetNearestPoint () |
Intersection testing for line and surface.
Vector3 ^ AnyCAD::Platform::IntersectionLineSurface::GetNearestPoint | ( | ) |
The nearest intersection point.
Real AnyCAD::Platform::IntersectionLineSurface::GetParameterU | ( | int | idx | ) |
Get u parameter by index
idx | the index. start from 1. |
Real AnyCAD::Platform::IntersectionLineSurface::GetParameterV | ( | int | idx | ) |
Get v parameter by index
idx | the index. start from 1. |
Real AnyCAD::Platform::IntersectionLineSurface::GetParameterW | ( | int | idx | ) |
The parameter for the line
idx | the index. start from 1. |
Vector3 ^ AnyCAD::Platform::IntersectionLineSurface::GetPoint | ( | int | idx | ) |
Get the point by index
idx | the index. start from 1. |
int AnyCAD::Platform::IntersectionLineSurface::GetPointCount | ( | ) |
Get the intersection point count
bool AnyCAD::Platform::IntersectionLineSurface::Perform | ( | Ray^ | ray | ) |
Intersection test by ray
ray | the ray. |
bool AnyCAD::Platform::IntersectionLineSurface::Perform | ( | 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::Platform::IntersectionLineSurface::SetSurface | ( | TopoShape^ | surface | ) |
Initialize the algorithm with surface
surface | must be face |