<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10px"><div id="yiv7775190023"><div id="yui_3_16_0_1_1450627028500_2961"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10px;" id="yui_3_16_0_1_1450627028500_2960"><div id="yiv7775190023yui_3_16_0_1_1450626931478_4306"> Hello,</div><div id="yui_3_16_0_1_1450627028500_3008"><br></div><div id="yui_3_16_0_1_1450627028500_3042" dir="ltr">I want to save my polydata after clipping with vtkBoxWidget. If I run following code-block, the saved file is empty. </div><div id="yui_3_16_0_1_1450627028500_3225" dir="ltr">What can be my mistake here?</div><div id="yui_3_16_0_1_1450627028500_3125"><br></div><div id="yui_3_16_0_1_1450627028500_3046" dir="ltr"> m_Clip= vtkSmartPointer<vtkClipPolyData>::New();<br id="yui_3_16_0_1_1450627028500_3120" class=""> m_Clip->SetClipFunction(m_Plane);<br id="yui_3_16_0_1_1450627028500_3122" class=""> m_Clip->InsideOutOn();<br id="yui_3_16_0_1_1450627028500_3124" class=""> m_Clip->SetInputConnection(m_Decimater->GetOutputPort());</div><div id="yui_3_16_0_1_1450627028500_3127" dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_1_1450627028500_3047"> m_PolyDataSave= vtkSmartPointer<vtkPolyData>::New();<br id="yui_3_16_0_1_1450627028500_3045" class=""> m_PolyDataSave->ShallowCopy(m_Clip->GetOutput());</div><div dir="ltr" id="yui_3_16_0_1_1450627028500_3074"><br></div><div dir="ltr" id="yui_3_16_0_1_1450627028500_3094"> m_PolyDataWriter = vtkSmartPointer<vtkPolyDataWriter>::New();<br id="yui_3_16_0_1_1450627028500_3067" class=""> m_PolyDataWriter->SetFileName("clippedObject.vtk");<br id="yui_3_16_0_1_1450627028500_3069" class=""> m_PolyDataWriter->SetInput(m_PolyDataSave);<br id="yui_3_16_0_1_1450627028500_3071" class=""> m_PolyDataWriter->SetFileTypeToASCII();</div><div dir="ltr" id="yui_3_16_0_1_1450627028500_3305"> m_PolyDataWriter->Write();</div><div dir="ltr" id="yui_3_16_0_1_1450627028500_3224"><br></div><div dir="ltr" id="yui_3_16_0_1_1450627028500_3275">Thank you for any help!</div></div></div></div></div></body></html>