[vtkusers] vtkX3DExporter, vtkVrmlExporter and assemblies

Jahn Otto Næsgaard Andersen jotto at jotto.no
Mon Nov 5 14:45:47 EST 2012


I am trying to export a scene where the renderer contains an assembly. This
assembly contains multiple assemblies and actors. I am trying to export
this with

var exporter = vtkX3DExporter.New();
exporter.SetInput(window);
exporter.SetFileName("f:\\tuba\\testX3DExporter.x3d");
exporter.Update();
exporter.Write();

But all I get is an error window saying

ERROR: In
..\..\..\..\vtksource-prefix\src\vtksource\Hybrid\vtkX3DExporter.cxx, line
132
vtkX3DExporter (0D1341A0): no actors found for writing X3D file.


The same happens with vtkVrmlExporter.


Does these exporters not work with assemblies?

As a sidenote, renderer.GetActors() returns an empty collection for some
reason.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121105/803f5bac/attachment.htm>


More information about the vtkusers mailing list