Go to the documentation of this file.
19 #ifndef vtkIntersectionCounter_h
20 #define vtkIntersectionCounter_h
22 #include "vtkCommonDataModelModule.h"
48 { this->
Tolerance = (tol < 0.0 ? 0.0001 : tol);}
82 std::vector<double>::iterator i0 =
IntsArray.begin();
83 std::vector<double>::iterator i1 = i0 + 1;
vtkIntersectionCounter(double tol, double length)
void AddIntersection(double t)
Add an intersection given by parametric coordinate t.
void SetTolerance(double tol)
Set/Get the intersection tolerance.
void Reset()
Reset the intersection process.
std::vector< double > IntsArray
vtkIntersectionCounter()
This tolerance must be converted to parametric space.
int CountIntersections()
Returns number of intersections (even number of intersections, outside or odd number of intersections...
Fast simple class for dealing with ray intersections.