[vtkusers] get vtkPolyData from VRML files?

Mathieu Malaterre mathieu.malaterre at kitware.com
Mon May 10 13:50:35 EDT 2004


Chris Scharver wrote:
> On May 7, 2004, at 7:45 PM, ChenHao wrote:
> 
>> i am new user in VTK,here is my question.
>> How can I get vtkPolyData or vtkActor or something else from a VRML file?
>> I know vtkActor can be get from vtkRenderer after import a VRML 
>> file,but is there any other way to get vtkActor or something else when 
>> NOT using vtkRenderer?
> 
> 
> If you're willing to install and use an additional software library, I 
> can help you. I have some code which bridges Coin3D (an open source 
> library based on the Open Inventor API) and VTK. One can read a VRML 
> file and obtain vtkPolyData for its geometry. I use Coin3D to read VRML 
> and VRML2 model files, and I then I manually convert the geometry into 
> vtkPolyData.
> 
> The code as it stands right now is pretty custom-tailored to my thesis 
> needs. VRML files must contain geometry as indexed vertex data, and I 
> don't know fully which features of VRML may or may not work. I can send 
> you more information off the list if you think this may help you.

Chris,

	Could you be more precise on that ? What is missing from the 
vtkVRMLExport/Importer you could find in Coind3d ? Could you contribute 
your code (Is it BSD-like) ? Do you have some VRML files that can't be 
read, you could share with us ?

Thanks,
Mathieu





More information about the vtkusers mailing list