[vtkusers] get vtkPolyData from VRML files?
Chris Scharver
scharver at evl.uic.edu
Sun May 9 10:39:34 EDT 2004
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
--
Chris Scharver
Electronic Visualization Laboratory
The University of Illinois at Chicago
Ph: 312-996-3002 FAX: 312-413-7585
<http://www.evl.uic.edu/scharver/>
More information about the vtkusers
mailing list