why is the result given by Para view different from vtk?

Many thanks to anyone who can provide information.

1 i found that opening the .wrl file using ParaView, one actor contained by the file, whose position(direction) is error;
2 when use vtk,open the wrl file, the result shown is ok,but converting .wrl file to .vtp file with vtk interfaces , then open the vtp file, the result shown is same as the result mentioned by 1,the problem still exists;
3 when use CAD Assistant, open the wrl file, the result shown is same as vtk;
4 the wrl file is below.

why is the result given by Para view different from vtk?

1.wrl (2.2 MB)

When you open this in ParaView, you are using the vtkVRMLReader, when you open it in VTK, you are most likely opening it using the vtkVRMLImporter.

The vtkVRMLImporter have been improved in the last few years, while the reader probably contains some bugs that were never fixed.

In addition to what @mwestphal said, there is a subtle but very important difference between readers and importers. An importer can import a whole scene into ParaView, which may consist of several actors, coloring information, textures, and even lighting and background settings. A reader, in contrast, can only read geometric data and possibly attributes from the file, and may load only the first such geometry dataset in a file (I’m not sure what vtkVRMLReader does) - it will not read any of the display information that an importer can read.

ParaView does not yet support importing VRML scenes, it can only read geometry from VRML files (and probably some attributes like texture coordinates). So even if there were no bugs in the vtkVRMLReader that ParaView uses, you might still get an unsatisfying result that does not match what is shown by the vtkVRMLImporter.

1 Like