[Paraview] Reconstruction of surface data from point cloud.
David E DeMarle
dave.demarle at kitware.com
Tue Nov 10 10:22:01 EST 2015
Try throwing in a call to vtkContourFilter->ComputeScalarsOn() like so.
On Tue, Nov 10, 2015 at 9:44 AM, Feijoo, Gonzalo <gonzalo.feijoo at siemens.com
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20151110/9eed4dc1/attachment.html>
More information about the ParaView
mailing list