#include <vtkIntersectionPolyDataFilter.h>
Inherits vtkPolyDataAlgorithm.
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
- Tests:
- vtkIntersectionPolyDataFilter (Tests)
Definition at line 41 of file vtkIntersectionPolyDataFilter.h.
vtkIntersectionPolyDataFilter::vtkIntersectionPolyDataFilter |
( |
| ) |
|
|
protected |
vtkIntersectionPolyDataFilter::~vtkIntersectionPolyDataFilter |
( |
| ) |
|
|
protected |
static int vtkIntersectionPolyDataFilter::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkIntersectionPolyDataFilter::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkIntersectionPolyDataFilter::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
virtual void vtkIntersectionPolyDataFilter::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
virtual |
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 * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protected |
int vtkIntersectionPolyDataFilter::FillInputPortInformation |
( |
int |
, |
|
|
vtkInformation * |
|
|
) |
| |
|
protected |
The documentation for this class was generated from the following file: