39 #ifndef __vtkCollisionDetectionFilter_h
40 #define __vtkCollisionDetectionFilter_h
42 #include "vtkPolyDataAlgorithm.h"
43 #include "vtkLinearTransform.h"
44 #include "vtkIdTypeArray.h"
45 #include "vtkFieldData.h"
61 void PrintSelf(ostream& os, vtkIndent indent);
67 VTK_FIRST_CONTACT = 1,
94 int npts2,
double *pts2,
95 double bounds2[6],
double tol2,
96 double x1[2],
double x2[3],
101 void SetInput(
int i, vtkPolyData *model);
122 void SetTransform(
int i, vtkLinearTransform *transform);
127 void SetMatrix(
int i, vtkMatrix4x4 *matrix);
150 {
return this->GetOutput(0)->GetFieldData()->GetArray(
"ContactCells")->GetNumberOfTuples();}
176 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
181 vtkLinearTransform *Transform[2];
182 vtkMatrix4x4 *Matrix[2];
208 return (
char *)
"AllContacts";
212 return (
char *)
"FirstContact";
216 return (
char *)
"HalfContacts";