vtkClosePolyData Class Reference
#include <vtkClosePolyData.h>
List of all members.
Detailed Description
Definition at line 35 of file vtkClosePolyData.h.
Constructor & Destructor Documentation
vtkClosePolyData::vtkClosePolyData |
( |
|
) |
[protected] |
vtkClosePolyData::~vtkClosePolyData |
( |
|
) |
[protected] |
Member Function Documentation
void vtkClosePolyData::Execute |
( |
|
) |
[protected] |
Definition at line 45 of file vtkClosePolyData.cxx.
References New().
00046 {
00047 vtkPolyData *input = this->GetInput();
00048 vtkPolyData *output = this->GetOutput();
00049
00050
00051 vtkFeatureEdges *boundary = vtkFeatureEdges::New();
00052 boundary->SetInput( input );
00053 boundary->BoundaryEdgesOn ();
00054 boundary->FeatureEdgesOff ();
00055 boundary->NonManifoldEdgesOff ();
00056 boundary->ManifoldEdgesOff ();
00057
00058
00059 vtkStripper *stripper = vtkStripper::New();
00060 stripper->SetInput( boundary->GetOutput() );
00061 stripper->Update();
00062 boundary->Delete();
00063
00064 vtkPolyData *pd = vtkPolyData::New();
00065 pd->SetPoints ( stripper->GetOutput()->GetPoints() );
00066 pd->SetPolys ( stripper->GetOutput()->GetLines() );
00067 stripper->Delete();
00068
00069
00070 vtkTriangleFilter *triangle = vtkTriangleFilter::New();
00071 triangle->SetInput( pd );
00072 pd->Delete();
00073
00074 vtkAppendPolyData *append = vtkAppendPolyData::New();
00075 append->AddInput( input );
00076 append->AddInput( triangle->GetOutput());
00077 triangle->Delete();
00078
00079 vtkCleanPolyData *clean = vtkCleanPolyData::New();
00080 clean->SetInput( append->GetOutput());
00081 append->Delete();
00082
00083
00084
00085 clean->Update();
00086 output->ShallowCopy( clean->GetOutput() );
00087 clean->Delete();
00088 }
void vtkClosePolyData::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent | |
|
) |
| | |
vtkClosePolyData::vtkTypeRevisionMacro |
( |
vtkClosePolyData |
, |
|
|
vtkPolyDataToPolyDataFilter |
| |
|
) |
| | |
The documentation for this class was generated from the following files:
- /home/davila/Creatis/creaMaracasVisu/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkClosePolyData.h
- /home/davila/Creatis/creaMaracasVisu/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkClosePolyData.cxx