[vtkusers] VRML

Tom Citriniti citrit at rpi.edu
Fri May 17 23:13:18 EDT 2002


The VRML Importer has the abilility to return an object by the DEF name used
in the class. Check out the class page and look at the method that returns
an object by name. This is broken in the current version. I have a fixed
version I have not checked back into CVS. Let me know if this will help you.
Otherwise you can simply rip through all the actors and output the
underlying Polydata objects and pick the one you want.

Tom C.

----- Original Message -----
From: "alexandre gouaillard" <alexandre.gouaillard at insa-lyon.fr>
To: <vtkusers at public.kitware.com>
Sent: Friday, May 17, 2002 6:52 PM
Subject: [vtkusers] VRML


> hi all
>
> I would like to get an object out from a vrml file to dump it into , let
's
> say , a polydata (.vtk) file.
>
> I can vizualize the object thanks to vtkVRMLImporter, unfortunatly, this
> class does almost all by itself and doesn't seems to give the user direct
> access to the imported objects.
>
> Does anyone have any Idea/suggestion/solution ?
>
> alex
>
> ----- Original Message -----
> From: "Charl P. Botha" <c.p.botha at its.tudelft.nl>
> To: <vtkusers at public.kitware.com>
> Sent: Saturday, May 18, 2002 12:43 AM
> Subject: [vtkusers] python ErrorEvent
>
>
> > Dear VTKers,
> >
> > When a VTK class makes use of the vtkErrorMacro() macro, the instance
> > invokes an ErrorEvent.  In C++ this ErrorEvent is invoked with a
callData
> > pointing to the actual string parameter with which vtkErrorMacro was
> called.
> > So, an observer could make use of this string.
> >
> > I'm trying to do the same in Python.  However, in python the observer
> > function is called with only the instance and the string 'ErrorEvent' as
> > parameters.  Does anyone know if it's possible to get to the callData
(the
> > error message) from Python?
> >
> > Thanks,
> > Charl
> >
> > --
> > charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list