[vtkusers] vtkVRMLImporter checked into contrib

Tom Citriniti citrit at rpi.edu
Wed Jun 28 14:18:47 EDT 2000


I just finished checking in the vtkVRMLImporter to the CVS tree. This should show up in tomorrows build and hopefully not make the system crash too bad (sorry Bill).

The importer will handle VRML 2.0 files and will translate a majority of the geometries. Currently there is no support for textures or per-vertex or per-face coloring. I will have to investigate if this is a possibility with 3.x. There is also a simple test script and example file which loads the sample VRML file. It based on the importer so follow that thread.
These nodes are currently supported:

  Appearance
  Box
  Color
  Cone
  Coordinate
  Cylinder
  DirectionalLight
  IndexedFaceSet
  IndexedLineSet
  Material
  Shape
  Sphere
  Transform

As you can see this implementation focuses on getting the geometry translated. The routes and scripting nodes are ignored since they deal with directly accessing a nodes internal structure based on the VRML spec. Since this is a translation the internal datastructures differ greatly from the VRML spec and the External Authoring Interface (see the VRML spec). The DEF/USE mechanism does allow the Vtk user to extract objects from the scene and directly manipulate them using the native language (Tcl, Python, Java, or whatever language Vtk is wrapped in). This, in a way, removes the need for the route and script mechanism (not completely though).

Take a look and let me know if there is anything that needs cleaning up.

Tom Citriniti



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20000628/996143c2/attachment.html>


More information about the vtkusers mailing list