 |
VTK
9.0.1
|
Go to the documentation of this file.
97 #ifndef vtkCollisionDetectionFilter_h
98 #define vtkCollisionDetectionFilter_h
101 #include "vtkFiltersModelingModule.h"
125 VTK_ALL_CONTACTS = 0,
126 VTK_FIRST_CONTACT = 1,
127 VTK_HALF_CONTACTS = 2
136 vtkSetClampMacro(CollisionMode,
int, VTK_ALL_CONTACTS, VTK_HALF_CONTACTS);
137 vtkGetMacro(CollisionMode,
int);
144 if (this->CollisionMode == VTK_ALL_CONTACTS)
146 return "AllContacts";
148 else if (this->CollisionMode == VTK_FIRST_CONTACT)
150 return "FirstContact";
154 return "HalfContacts";
167 int IntersectPolygonWithPolygon(
int npts,
double* pts,
double bounds[6],
int npts2,
double* pts2,
168 double bounds2[6],
double tol2,
double x1[2],
double x2[3],
int CollisionMode);
215 vtkSetMacro(BoxTolerance,
float);
216 vtkGetMacro(BoxTolerance,
float);
222 vtkSetMacro(CellTolerance,
double);
223 vtkGetMacro(CellTolerance,
double);
231 vtkSetMacro(GenerateScalars,
int);
232 vtkGetMacro(GenerateScalars,
int);
233 vtkBooleanMacro(GenerateScalars,
int);
250 vtkGetMacro(NumberOfBoxTests,
int);
257 vtkSetMacro(NumberOfCellsPerNode,
int);
258 vtkGetMacro(NumberOfCellsPerNode,
int);
266 vtkSetClampMacro(Opacity,
float, 0.0, 1.0);
267 vtkGetMacro(Opacity,
float);
represent and manipulate 3D points
void SetCollisionModeToHalfContacts()
vtkLinearTransform * GetTransform(int i)
vtkAlgorithmOutput * GetOutputPort()
generate oriented bounding box (OBB) tree
vtkPolyData * GetContactsOutput()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkFieldData * GetFieldData()
vtkDataArray * GetArray(int i)
Not recommended for use.
vtkIdType GetNumberOfTuples() const
Get the number of complete tuples (a component group) in the array.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
void SetInputData(vtkDataObject *)
Assign a data object as input.
dynamic, self-adjusting array of vtkIdType
Proxy object to connect input/output ports.
concrete dataset represents vertices, lines, polygons, and triangle strips
performs collision determination between two polyhedral surfaces
void SetCollisionModeToAllContacts()
const char * GetCollisionModeAsString(void)
int GetNumberOfContacts()
vtkAlgorithmOutput * GetContactsOutputPort()
Get the output with the points where the contacting cells intersect.
vtkPolyData * GetOutput()
Get the output data object for a port on this algorithm.
static vtkPolyDataAlgorithm * New()
void SetCollisionModeToFirstContact()
vtkTypeUInt32 vtkMTimeType
Superclass for algorithms that produce only polydata as output.