[Paraview] X3DExporter false mesh colouring?

Grothausmann, Roman Dr. grothausmann.roman at mh-hannover.de
Mon May 23 07:26:27 EDT 2016


Dear mailing list members,


When I export scenes to X3D then load the mesh into blender or a browser the 
mesh is colour wrong. The colours are there but apparently assigned to random 
cells/vertices. This happens with either PV5 or PV4, especially for category 
colouring. When using e.g. WebGL exporter all is fine.
Is there anything to do special for exporting to X3D? When I use plain VTK, the 
exported colours seemed OK so far.

Any help or hints are very much appreciated
Roman


On 04/12/14 15:34, Michael Nolde wrote:
> works perfectly, thank you!
>
> On 03.12.2014 19:49, Sebastien Jourdain wrote:
> View is not valid at the point you get it.
>
> from paraview.simple import *
> exporters=servermanager.createModule("exporters")
> source=Cone()
> Show()
> render=Render()
> x3dExporter=exporters.X3DExporter(FileName="foo.x3d")
> x3dExporter.SetView(render)
> x3dExporter.Write()
>
> On Wed, Dec 3, 2014 at 10:01 AM, Michael Nolde <__mnolde at gmx.net__> wrote:
> Dear mailing list members,
>
> I have some trouble exporting a scene to a X3D file via pvpython.
> I tried to execute to code found in
> __http://public.kitware.com/pipermail/paraview/2012-May/024924.html__
> (see below). It is executed without any errors, but no output file is created.
> My Paraview version is 4.0.1 64-bit (on a Ubuntu 14.04 machine).
> What I want to achieve is to convert .ply files to .x3d via pvpython.
> Could someone give me a hint?
>
> Thanks in advance,
> Michael
>
> from paraview.simple import *
> exporters=servermanager.createModule("exporters")
> source=Cone()
> view = GetActiveView()
> Show(view)
> render=Render()
> x3dExporter=exporters.X3DExporter(FileName="foo.x3d")
> x3dExporter.SetView(view)
> x3dExporter.Write()
>
>
> _______________________________________________
> 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__
>
> Follow this link to subscribe/unsubscribe:
> __http://public.kitware.com/mailman/listinfo/paraview__
>
>
>
>
>

-- 
Dr. Roman Grothausmann

Tomographie und Digitale Bildverarbeitung
Tomography and Digital Image Analysis

Institut für Funktionelle und Angewandte Anatomie, OE 4120
Medizinische Hochschule Hannover
Carl-Neuberg-Str. 1
D-30625 Hannover

Tel. +49 511 532-2900


More information about the ParaView mailing list