VTK
|
#include <vtkIntersectionPolyDataFilter.h>
vtkIntersectionPolyDataFilter computes the intersection between two vtkPolyData objects. The first output is a set of lines that marks the intersection of the input vtkPolyData objects. The second and third outputs are the first and second input vtkPolyData, respectively. Optionally, the two output vtkPolyData can be split along the intersection lines.
This code was contributed in the Insight Journal paper: "Boolean Operations on Surfaces in VTK Without External Libraries" by Cory Quammen, Chris Weigle C., Russ Taylor http://hdl.handle.net/10380/3262 http://www.insight-journal.org/browse/publication/797
Definition at line 41 of file vtkIntersectionPolyDataFilter.h.
Reimplemented from vtkPolyDataAlgorithm.
Definition at line 45 of file vtkIntersectionPolyDataFilter.h.
vtkIntersectionPolyDataFilter::vtkIntersectionPolyDataFilter | ( | ) | [protected] |
vtkIntersectionPolyDataFilter::~vtkIntersectionPolyDataFilter | ( | ) | [protected] |
static vtkIntersectionPolyDataFilter* vtkIntersectionPolyDataFilter::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkPolyDataAlgorithm.
static int vtkIntersectionPolyDataFilter::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm.
virtual int vtkIntersectionPolyDataFilter::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm.
static vtkIntersectionPolyDataFilter* vtkIntersectionPolyDataFilter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPolyDataAlgorithm.
virtual vtkObjectBase* vtkIntersectionPolyDataFilter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPolyDataAlgorithm.
Reimplemented from vtkPolyDataAlgorithm.
virtual void vtkIntersectionPolyDataFilter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkPolyDataAlgorithm.
virtual int vtkIntersectionPolyDataFilter::GetSplitFirstOutput | ( | ) | [virtual] |
If on, the second output will be the first input mesh split by the intersection with the second input mesh. Defaults to on.
virtual void vtkIntersectionPolyDataFilter::SetSplitFirstOutput | ( | int | ) | [virtual] |
If on, the second output will be the first input mesh split by the intersection with the second input mesh. Defaults to on.
virtual void vtkIntersectionPolyDataFilter::SplitFirstOutputOn | ( | ) | [virtual] |
If on, the second output will be the first input mesh split by the intersection with the second input mesh. Defaults to on.
virtual void vtkIntersectionPolyDataFilter::SplitFirstOutputOff | ( | ) | [virtual] |
If on, the second output will be the first input mesh split by the intersection with the second input mesh. Defaults to on.
virtual int vtkIntersectionPolyDataFilter::GetSplitSecondOutput | ( | ) | [virtual] |
If on, the third output will be the second input mesh split by the intersection with the first input mesh. Defaults to on.
virtual void vtkIntersectionPolyDataFilter::SetSplitSecondOutput | ( | int | ) | [virtual] |
If on, the third output will be the second input mesh split by the intersection with the first input mesh. Defaults to on.
virtual void vtkIntersectionPolyDataFilter::SplitSecondOutputOn | ( | ) | [virtual] |
If on, the third output will be the second input mesh split by the intersection with the first input mesh. Defaults to on.
virtual void vtkIntersectionPolyDataFilter::SplitSecondOutputOff | ( | ) | [virtual] |
If on, the third output will be the second input mesh split by the intersection with the first input mesh. Defaults to on.
static int vtkIntersectionPolyDataFilter::TriangleTriangleIntersection | ( | double | p1[3], |
double | q1[3], | ||
double | r1[3], | ||
double | p2[3], | ||
double | q2[3], | ||
double | r2[3], | ||
int & | coplanar, | ||
double | pt1[3], | ||
double | pt2[3] | ||
) | [static] |
Given two triangles defined by points (p1, q1, r1) and (p2, q2, r2), returns whether the two triangles intersect. If they do, the endpoints of the line forming the intersection are returned in pt1 and pt2. The parameter coplanar is set to 1 if the triangles are coplanar and 0 otherwise.
int vtkIntersectionPolyDataFilter::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkPolyDataAlgorithm.
int vtkIntersectionPolyDataFilter::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [protected, virtual] |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkPolyDataAlgorithm.