[vtkusers] saving vtkPolyData after vtkClipPolyData issue
Yusuf OEZBEK
nasil122002 at yahoo.de
Sun Dec 20 11:06:57 EST 2015
Hello,
I want to save my polydata after clipping with vtkBoxWidget. If I run following code-block, the saved file is empty. What can be my mistake here?
m_Clip= vtkSmartPointer<vtkClipPolyData>::New();
m_Clip->SetClipFunction(m_Plane);
m_Clip->InsideOutOn();
m_Clip->SetInputConnection(m_Decimater->GetOutputPort());
m_PolyDataSave= vtkSmartPointer<vtkPolyData>::New();
m_PolyDataSave->ShallowCopy(m_Clip->GetOutput());
m_PolyDataWriter = vtkSmartPointer<vtkPolyDataWriter>::New();
m_PolyDataWriter->SetFileName("clippedObject.vtk");
m_PolyDataWriter->SetInput(m_PolyDataSave);
m_PolyDataWriter->SetFileTypeToASCII(); m_PolyDataWriter->Write();
Thank you for any help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151220/fc5ecb75/attachment.html>
More information about the vtkusers
mailing list