21#ifndef vtkIntersectionCounter_h
22#define vtkIntersectionCounter_h
24#include "vtkCommonDataModelModule.h"
31VTK_ABI_NAMESPACE_BEGIN
46 this->
Tolerance = (length > 0.0 ? (tol / length) : 0.0);
73 int size =
static_cast<int>(
IntsArray.size());
87 std::vector<double>::iterator i0 =
IntsArray.begin();
88 std::vector<double>::iterator i1 = i0 + 1;
Fast simple class for dealing with ray intersections.
void AddIntersection(double t)
Add an intersection given by parametric coordinate t.
void Reset()
Reset the intersection process.
vtkIntersectionCounter(double tol, double length)
This tolerance must be converted to parametric space.
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...
void SetTolerance(double tol)
Set/Get the intersection tolerance.