[Paraview] Reconstruction of surface data from point cloud.

Feijoo, Gonzalo gonzalo.feijoo at siemens.com
Tue Nov 10 12:46:02 EST 2015


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:dave.demarle at kitware.com]
Sent: Tuesday, November 10, 2015 10:22 AM
To: Feijoo, Gonzalo
Cc: paraview at paraview.org
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 <gonzalo.feijoo at siemens.com<mailto: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/6cdd8c6a/attachment.html>


More information about the ParaView mailing list