| 1 |
Convert an X3D file to PML |
| 2 |
-------------------------- |
| 3 |
|
| 4 |
General case: |
| 5 |
Use any xslt processor (xalan for example) to convert an X3D document to PML |
| 6 |
using the x3d2pml.xsl XSL Stylesheet. |
| 7 |
|
| 8 |
You can try to transform teapot.x3d... |
| 9 |
|
| 10 |
If you are on linux, and libxslt-proc is install, simply type: |
| 11 |
x3d2pml.bat filename.x3d |
| 12 |
|
| 13 |
Problems |
| 14 |
-------- |
| 15 |
|
| 16 |
This transformation only works for facetted geometry (either triangular or quadrangular facets). |
| 17 |
This does not work for X3D fixed geometry like Sphere, Cone, ... |