<div dir="auto">What about surf?</div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 5, 2017 4:13 PM, "alican" <<a href="mailto:alican1812@hotmail.com">alican1812@hotmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">*myPolydata* is fully symmetric, *boundaryPoly *is still so, but<br>
cf->GetOutput() is not. Why?<br>
<br>
        vtkSmartPointer<<wbr>vtkFeatureEdges> featureEdges =<br>
vtkSmartPointer<<wbr>vtkFeatureEdges>::New();<br>
        featureEdges->SetInputData(*<wbr>myPolydata*);<br>
        featureEdges->BoundaryEdgesOn(<wbr>);<br>
        featureEdges->FeatureEdgesOff(<wbr>);<br>
        featureEdges->ManifoldEdgesOn(<wbr>);<br>
        featureEdges-><wbr>NonManifoldEdgesOff();<br>
        featureEdges->Update();<br>
<br>
        vtkSmartPointer<vtkStripper> boundaryStrips =<br>
vtkSmartPointer<vtkStripper>::<wbr>New();<br>
        boundaryStrips-><wbr>SetInputConnection(<wbr>featureEdges->GetOutputPort())<wbr>;<br>
        boundaryStrips-><wbr>SetJoinContiguousSegments(1);<br>
        boundaryStrips->Update();<br>
<br>
        // Change the polylines into polygons<br>
        vtkSmartPointer<vtkPolyData> boundaryPoly =<br>
vtkSmartPointer<vtkPolyData>::<wbr>New();<br>
        boundaryPoly->SetPoints(<wbr>boundaryStrips->GetOutput()-><wbr>GetPoints());<br>
        boundaryPoly->SetPolys(<wbr>boundaryStrips->GetOutput()-><wbr>GetLines());<br>
<br>
        vtkSmartPointer<<wbr>vtkSurfaceReconstructionFilter<wbr>> surf =<br>
vtkSmartPointer<<wbr>vtkSurfaceReconstructionFilter<wbr>>::New();<br>
        surf->SetInputData(*<wbr>boundaryPoly*);<br>
        surf->Update();<br>
<br>
        vtkSmartPointer<<wbr>vtkContourFilter> cf =<br>
vtkSmartPointer<<wbr>vtkContourFilter>::New();<br>
        cf->SetInputConnection(surf-><wbr>GetOutputPort());<br>
        cf->SetValue(0, 0.1);<br>
        cf->Update();<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-Users-f1224199.html</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div></div>