[x3d-public] Suspecting that something is being added to X3D-Edit as we speak.
Brutzman, Donald (Don) (CIV)
brutzman at nps.edu
Tue Dec 20 21:55:07 PST 2022
Hi John. You are looking at build scripts for X3DPSAIL also known as x3d.py
which is the python library implementing X3D SAI.
* Python X3D Package x3d.py
* https://www.web3d.org/x3d/stylesheets/python/python.html
We had some work on X3D Model Exchange development which used Blender to
convert x3d to stl. Simple command-line invocation (CLI). Not sure if it
currently works, blender might have changed since last summer.
Given Meshlab improvements and python additions, am expecting lots of
activity will emerge with Blender Meshlab and Python in the coming year.
Meanwhile am focused on X3D-Edit. No direct support there for STL or PLY,
though it would be nice. Since X3D has many ways to express a mesh, I'd
expect a model would have to be fully tessellated (at some resolution)
before being available for conversion to STL.
Meanwhile, going from STL to X3D appears a lot easier since the STL file is
a single mesh. Suggest turning that into an IndexedFaceSet. I believe
there are variations of STL and also various libraries. If you get
something working in Java stably we can probably add it to X3D-Edit and
X3DJSAIL, similarly for Python and X3DPSAIL>
Good luck!
all the best, Don
--
Don Brutzman Naval Postgraduate School, Code USW/Br brutzman at nps.edu
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149
X3D graphics, virtual worlds, Navy robotics https://
faculty.nps.edu/brutzman
From: John Carlson <yottzumm at gmail.com>
Sent: Tuesday, December 20, 2022 7:23 PM
To: Brutzman, Donald (Don) (CIV) <brutzman at nps.edu>; Norbraten, Terry (CIV)
<tdnorbra at nps.edu>; Joe D Williams <joedwil at earthlink.net>; X3D Graphics
public mailing list <x3d-public at web3d.org>
Subject: Suspecting that something is being added to X3D-Edit as we speak.
Didn't find any X3dToStl.xslt, but found, something else:
john at DESKTOP-8OPL3IE MINGW64
/c/x3d-code/www.web3d.org/x3d/stylesheets/java/src/python/blenderScripts
<http://www.web3d.org/x3d/stylesheets/java/src/python/blenderScripts>
$ ls -l
total 1140
-rw-r--r-- 1 john 197609 4794 Oct 27 23:44 BlenderStlToX3d.py
-rw-r--r-- 1 john 197609 7145 Oct 27 23:44 BlenderX3dToMultipleExports.py
-rw-r--r-- 1 john 197609 12403 Oct 27 23:44 BlenderX3dToPng.py
-rw-r--r-- 1 john 197609 20358 Oct 27 23:44 build.out.txt
-rw-r--r-- 1 john 197609 10994 Oct 27 23:44 build.xml
-rw-r--r-- 1 john 197609 129541 Oct 27 23:44
HanChenTest.viewpoint.blender.png
-rw-r--r-- 1 john 197609 139229 Oct 27 23:44
HanChenTest.viewpoint1.blender.png
-rw-r--r-- 1 john 197609 544494 Oct 27 23:44 HanChenTest.x3d
-rw-r--r-- 1 john 197609 163884 Oct 27 23:44 LPD17.stl
-rw-r--r-- 1 john 197609 113347 Oct 27 23:44 LPD17.x3d
drwxr-xr-x 1 john 197609 0 Oct 27 23:44 products/
john at DESKTOP-8OPL3IE MINGW64
/c/x3d-code/www.web3d.org/x3d/stylesheets/java/src/python/blenderScripts
<http://www.web3d.org/x3d/stylesheets/java/src/python/blenderScripts>
$ !find
find . -name "*stl"
./LPD17.stl
./products/LPD17.blender.stl
john at DESKTOP-8OPL3IE MINGW64
/c/x3d-code/www.web3d.org/x3d/stylesheets/java/src/python/blenderScripts/pro
ducts
<http://www.web3d.org/x3d/stylesheets/java/src/python/blenderScripts/product
s>
$ ls -l
total 3193
-rw-r--r-- 1 john 197609 609800 Oct 27 23:44 LPD17.blend
-rw-r--r-- 1 john 197609 535603 Oct 27 23:44 LPD17.blender.ply
-rw-r--r-- 1 john 197609 29203 Oct 27 23:44 LPD17.blender.png
-rw-r--r-- 1 john 197609 160634 Oct 27 23:44 LPD17.blender.stl
-rw-r--r-- 1 john 197609 122559 Oct 27 23:44 LPD17.blender.tidy.x3d
-rw-r--r-- 1 john 197609 123106 Oct 27 23:44 LPD17.blender.x3d
-rw-r--r-- 1 john 197609 45269 Oct 27 23:44 LPD17.blender_mono.png
-rw-r--r-- 1 john 197609 123114 Oct 27 23:44 LPD17.blender_mono.x3d
-rw-r--r-- 1 john 197609 122719 Oct 27 23:44 LPD17.blenderTidy.x3d
-rw-r--r-- 1 john 197609 126614 Oct 27 23:44 LPD17.viewpoint.blender.png
-rw-r--r-- 1 john 197609 126406 Oct 27 23:44 LPD17.viewpoint1.blender.png
-rw-r--r-- 1 john 197609 126779 Oct 27 23:44 LPD17.viewpoint2.blender.png
-rw-r--r-- 1 john 197609 126525 Oct 27 23:44 LPD17.viewpoint3.blender.png
-rw-r--r-- 1 john 197609 126762 Oct 27 23:44 LPD17.viewpoint4.blender.png
-rw-r--r-- 1 john 197609 128388 Oct 27 23:44 LPD17.viewpoint5.blender.png
-rw-r--r-- 1 john 197609 609800 Oct 27 23:44 LPD17_mono.blend
-rw-r--r-- 1 john 197609 121 Oct 27 23:44 README.md
When can we see a test version in X3D-Edit? I'm guessing Blender does the
tessellating? Should I look at the menus again? Will do!
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20221221/2f8abae9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5353 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20221221/2f8abae9/attachment-0001.p7s>
More information about the x3d-public
mailing list