[Paraview] vtkDiscreteMarchingCubes point/cell arrays from XML-PV plugin
Joachim Pouderoux
joachim.pouderoux at kitware.com
Wed Nov 29 15:36:38 EST 2017
Hi Roman,
I guess we should add some SetName() calls in the code of
vtkDiscreteMarchingCubes.
Feel free to submit a merge request with this very small change.
In the meanwhile, what about adding a Programmable Filter on the output of
this filter and do something like:
inputpds = self.GetInput().GetPointData().GetScalars()
if inputpds != None:
inputpds.SetName("PointScalars")
inputcds = self.GetInput().GetCellData().GetScalars()
if inputcds != None:
inputcds.SetName("CellScalars")
Do not forget to check the "Copy Arrays" option for sure.
Best,
Joachim
*Joachim Pouderoux*, PhD
*Technical Expert - Scientific Computing Team*
*Kitware SAS <http://www.kitware.fr>*
2017-11-16 10:43 GMT-04:00 Grothausmann, Roman Dr. <
grothausmann.roman at mh-hannover.de>:
> Dear mailing list members,
>
>
> Based on AcceleratedAlgorithms.xml I created an XML-PV plugin to make use
> of
> vtkDiscreteMarchingCubes (https://github.com/romangroth
> ausmann/ParaView_XML-plugins/blob/1574430ce/vtkDiscreteMarchingCubes.xml).
> It basically works as expected, but does not yield any point/cell arrays in
> its result, that I would need for coloring of e.g. the different labels
> (i.e. ComputeScalars). I found a post that said that PV only lists arrays
> that have a name, but as far as I understand, vtkDiscreteMarchingCubes does
> name its output arrays.
> What else could be missing in the XML-code?
>
> Many thanks for any help or hints.
> Roman
>
> --
> Dr. Roman Grothausmann
>
> Tomographie und Digitale Bildverarbeitung
> Tomography and Digital Image Analysis
>
> Medizinische Hochschule Hannover
> Institut für Funktionelle und Angewandte Anatomie
> OE 4120, Carl-Neuberg-Str. 1, 30625 Hannover, Deutschland
> <https://maps.google.com/?q=Carl-Neuberg-Str.+1,+30625+Hannover,+Deutschland&entry=gmail&source=g>
>
> Tel. +49 511 532-2900
> grothausmann.roman at mh-hannover.de
> http://www.mh-hannover.de/anatomie.html
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171129/fcd83d23/attachment.html>
More information about the ParaView
mailing list