VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkIntersectionPolyDataFilter Class Reference

#include <vtkIntersectionPolyDataFilter.h>

Inherits vtkPolyDataAlgorithm.

Public Types

typedef vtkPolyDataAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkIntersectionPolyDataFilterNewInstance () const
 
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 (vtkObjectBase *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

virtual vtkObjectBase * NewInstanceInternal () const
 
 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 41 of file vtkIntersectionPolyDataFilter.h.

Member Typedef Documentation

typedef vtkPolyDataAlgorithm vtkIntersectionPolyDataFilter::Superclass

Definition at line 45 of file vtkIntersectionPolyDataFilter.h.

Constructor & Destructor Documentation

vtkIntersectionPolyDataFilter::vtkIntersectionPolyDataFilter ( )
protected
vtkIntersectionPolyDataFilter::~vtkIntersectionPolyDataFilter ( )
protected

Member Function Documentation

static vtkIntersectionPolyDataFilter* vtkIntersectionPolyDataFilter::New ( )
static
static int vtkIntersectionPolyDataFilter::IsTypeOf ( const char *  type)
static
virtual int vtkIntersectionPolyDataFilter::IsA ( const char *  type)
virtual
static vtkIntersectionPolyDataFilter* vtkIntersectionPolyDataFilter::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkIntersectionPolyDataFilter::NewInstanceInternal ( ) const
protectedvirtual
vtkIntersectionPolyDataFilter* vtkIntersectionPolyDataFilter::NewInstance ( ) const
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: