VTK
9.1.0
|
Fast simple class for dealing with ray intersections. More...
#include <vtkIntersectionCounter.h>
Public Member Functions | |
void | SetTolerance (double tol) |
Set/Get the intersection tolerance. | |
double | GetTolerance () |
void | AddIntersection (double t) |
Add an intersection given by parametric coordinate t. | |
void | Reset () |
Reset the intersection process. | |
int | CountIntersections () |
Returns number of intersections (even number of intersections, outside or odd number of intersections, inside). | |
vtkIntersectionCounter () | |
This tolerance must be converted to parametric space. | |
vtkIntersectionCounter (double tol, double length) | |
This tolerance must be converted to parametric space. | |
Protected Attributes | |
double | Tolerance |
std::vector< double > | IntsArray |
Fast simple class for dealing with ray intersections.
vtkIntersectionCounter is used to intersect data and merge coincident points along the intersect ray. It is light-weight and many of the member functions are in-lined so its very fast. It is not derived from vtkObject so it can be allocated on the stack.
This class makes the finite ray intersection process more robust. It merges intersections that are very close to one another (within a tolerance). Such situations are common when intersection rays pass through the edge or vertex of a mesh.
Definition at line 29 of file vtkIntersectionCounter.h.
|
inline |
This tolerance must be converted to parametric space.
Here tol is the tolerance in world coordinates; length is the ray length.
Definition at line 37 of file vtkIntersectionCounter.h.
|
inline |
This tolerance must be converted to parametric space.
Here tol is the tolerance in world coordinates; length is the ray length.
Definition at line 41 of file vtkIntersectionCounter.h.
|
inline |
Set/Get the intersection tolerance.
Definition at line 50 of file vtkIntersectionCounter.h.
|
inline |
Definition at line 51 of file vtkIntersectionCounter.h.
|
inline |
Add an intersection given by parametric coordinate t.
Definition at line 56 of file vtkIntersectionCounter.h.
|
inline |
Reset the intersection process.
Definition at line 61 of file vtkIntersectionCounter.h.
|
inline |
Returns number of intersections (even number of intersections, outside or odd number of intersections, inside).
This is done by considering close intersections (within Tolerance) as being the same point.
Definition at line 68 of file vtkIntersectionCounter.h.
|
protected |
Definition at line 102 of file vtkIntersectionCounter.h.
|
protected |
Definition at line 103 of file vtkIntersectionCounter.h.