VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkIntersectionPolyDataFilter Class Reference

#include <vtkIntersectionPolyDataFilter.h>

Inheritance diagram for vtkIntersectionPolyDataFilter:
Inheritance graph
[legend]
Collaboration diagram for vtkIntersectionPolyDataFilter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual int GetSplitFirstOutput ()
virtual void SetSplitFirstOutput (int)
virtual void SplitFirstOutputOn ()
virtual void SplitFirstOutputOff ()
virtual int GetSplitSecondOutput ()
virtual void SetSplitSecondOutput (int)
virtual void SplitSecondOutputOn ()
virtual void SplitSecondOutputOff ()

Static Public Member Functions

static
vtkIntersectionPolyDataFilter
New ()
static int IsTypeOf (const char *type)
static
vtkIntersectionPolyDataFilter
SafeDownCast (vtkObject *o)
static int 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])

Protected Member Functions

 vtkIntersectionPolyDataFilter ()
 ~vtkIntersectionPolyDataFilter ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int FillInputPortInformation (int, vtkInformation *)

Detailed Description

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 40 of file vtkIntersectionPolyDataFilter.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 44 of file vtkIntersectionPolyDataFilter.h.


Constructor & Destructor Documentation

vtkIntersectionPolyDataFilter::vtkIntersectionPolyDataFilter ( ) [protected]
vtkIntersectionPolyDataFilter::~vtkIntersectionPolyDataFilter ( ) [protected]

Member Function Documentation

static vtkIntersectionPolyDataFilter* vtkIntersectionPolyDataFilter::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkPolyDataAlgorithm.

virtual const char* vtkIntersectionPolyDataFilter::GetClassName ( ) [virtual]

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 ( vtkObject o) [static]

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.


The documentation for this class was generated from the following file: