27 #include <vtkImageData.h>
28 #include <vtkMarchingCubes.h>
29 #include <vtkSTLWriter.h>
47 surfaceCreator->SetInputData(
m_ResultImage->GetVtkImageData());
48 surfaceCreator->SetValue(0, 1);
49 surfaceCreator->Update();
52 surface->SetVtkPolyData(surfaceCreator->GetOutput());
55 surfaceNode->SetData(surface);
61 surfaceCreator->Delete();
virtual void StartRegionGrowing()
virtual void StartRegionGrowing() override
mitk::Image::Pointer m_ResultImage
Step7(int argc, char *argv[], QWidget *parent=nullptr)
Convert result of region-grower into a surface by means of a VTK filter.
static RenderingManager * GetInstance()
mitk::DataNode::Pointer m_ResultNode
void RequestUpdateAll(RequestType type=REQUEST_UPDATE_ALL)
mitk::StandaloneDataStorage::Pointer m_DataStorage
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.