Hi, David, Many thanks for the quick reply! Somehow that did not work. The values are still not being passed to DataArrays. I will look into the documentation to see if there is anything else that can be used.
Best, Gonzalo From: David E DeMarle [mailto:[email protected]] Sent: Tuesday, November 10, 2015 10:22 AM To: Feijoo, Gonzalo Cc: [email protected] Subject: Re: [Paraview] Reconstruction of surface data from point cloud. Try throwing in a call to vtkContourFilter->ComputeScalarsOn() like so. On Tue, Nov 10, 2015 at 9:44 AM, Feijoo, Gonzalo <[email protected]<mailto:[email protected]>> wrote: mport vtk pdi = self.GetPolyDataInput() subf1 = vtk.vtkSurfaceReconstructionFilter() subf1.SetInputData(pdi) subf2 = vtk.vtkContourFilter() subf2.ComputeScalarsOn() subf2.SetInputConnection(subf1.GetOutputPort()) subf2.Update() pdo = self.GetPolyDataOutput() pdo.ShallowCopy(subf2.GetOutput()) The default behavior is to not pass arrays through, which is right in the fairly common case (but not common enough to make it the default in my opinion) of a single isocontour from a single array. In that case the values would all be the same. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
