<div dir="ltr"><div dir="ltr"><br></div>Thanks Michalis, I just reread and saw the NURBS to simpler things.<div><br></div><div>That will likely help!</div><div><br></div><div>So do we have AMF, 3MF, and binary STL output somewheres? I have a bit about PLY input converted to X3D source code. It looks like from the first image, that PLY, AMF and 3MF output are not done according to the wish list, but there's an effort in blender plugins to support PLY in/out.</div><div><br></div><div>I don't see anything related to AMF and 3MF. In our source code. Is it in X3D-Edit</div><div><br></div><div>Vince, you're the Printing and Scanning dude. It seems like you're indicating such outputs should be from python? Does that mean Blender python or OCC or both? I get it that you want to provide python in a web page.</div><div><br></div><div>Can you direct me to any python code related, if not stuff already posted by me?</div><div><br></div><div>It would likely impact more people if we added it as blender plugins! So the only task for Python and X3D-Edit is to call various Blender programs after converting to .blend or sourcing from .blend.</div><div><br></div><div>I would be interested in a 4D NURBS, if that is possible (see Ray Tracing Jello?). Does that fall under RigidBodyPhysics/ParticleSystems?</div><div><br></div><div>John</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 20, 2022 at 10:29 AM Michalis Kamburelis <<a href="mailto:michalis.kambi@gmail.com">michalis.kambi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Ah, I misread your post in haste -- you wrote "Stereo Lithography (STL) export converter from X3D JSON to STL". So X3D -> STL, not the other way around. My answer was for X3D -> STL, so not that much helpful to you, sorry! :)</div><div><br></div><div>If you want to see how we do NURBS -> simpler things, it's in <br></div><div><br></div><div>- <a href="https://github.com/castle-engine/castle-engine/blob/master/src/transform/castlenurbs.pas" target="_blank">https://github.com/castle-engine/castle-engine/blob/master/src/transform/castlenurbs.pas</a> (calculate points and normals on NURBS curve / surface)</div><div><br></div><div>- <a href="https://github.com/castle-engine/castle-engine/blob/master/src/scene/x3d/x3dnodes_standard_nurbs.inc" target="_blank">https://github.com/castle-engine/castle-engine/blob/master/src/scene/x3d/x3dnodes_standard_nurbs.inc</a> (using above, e.g. <span>NurbsPatchSurfaceProxy uses TNurbsSurfaceCalculator to generate X3D TIndexedQuadSetNode)</span></div><div><span><br></span></div><div><span>Regards,</span></div><div><span>Michalis<br></span></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">wt., 20 gru 2022 o 17:20 John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Sorry for any confusion, I’m trying to convert abstract geometry (in X3D) to triangle or face meshes in ECMAScript and then to STL. If someone has done this before, how did you choose a mesh for each shape (sphere, cone, cylinder, extrusion, 2D). I already know NURBS is complex, for that, but I’ve not done animated NURBS, which sounds really hard, and perhaps not good looking??? Has anyone animated NURBS? Jello, anyone?</div><div dir="auto"><br></div><div dir="auto">I’m not looking to produce X3D at this point, going from a low level triangle code to abstract geometry sounds really hard, but perhaps lucrative? Isn’t this what the scanning group is doing? Do they use OpenCascade, C++, and Python?</div><div dir="auto"><br></div><div dir="auto">I’ll look at your Pascal code now.</div><div dir="auto"><br></div><div dir="auto">John</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, Dec 20, 2022 at 6:58 AM Michalis Kamburelis <<a href="mailto:michalis.kambi@gmail.com" target="_blank">michalis.kambi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>STL already contains a simple list of triangles. So if by "tesselation" you mean "ability to produce triangles from more complex shapes", you don't really need it for STL :)</div><div><br></div><div>Note that CGE, view3dscene and <a href="https://castle-engine.io/convert.php" target="_blank">https://castle-engine.io/convert.php</a> can convert STL -> X3D. The code to handle STL is really simple and you can likely adjust it for other purposes / libraries / languages : <a href="https://github.com/castle-engine/castle-engine/blob/master/src/scene/load/x3dloadinternalstl.pas" target="_blank">https://github.com/castle-engine/castle-engine/blob/master/src/scene/load/x3dloadinternalstl.pas</a> .</div><div><br></div><div>Regards,</div><div>Michalis<br></div></div><br><div class="gmail_quote"></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">wt., 20 gru 2022 o 12:07 John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> napisał(a):<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><img src="cid:ii_lbw475o70" alt="image.png" style="width: 932px; max-width: 100%;"><br><div><br></div><div>The Stereo Lithography (STL) export converter from X3D JSON to STL looks like low hanging fruit. I just need to find some good tesselation code in ECMAScript. I already have a basic framework. Can anyone recommend A-Frame, Three.js, Babylon.js, Unity, X3DOM or X_ITE code for doing tesselation, or is it built into WebGL? Meanwhile, I will be working on meshes and creating a project, etc.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 20, 2022 at 4:45 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Over the next several weeks, I will be ramping up for potential return to work, testing out CTS coping skills (laying on a different side, taking breaks), computer hygiene, sleeping hygiene etc.<div><br></div><div>My wife has given me the thumbs up to return to work remotely.</div><div><br></div><div>So if there's any X3D tasks, I should be able to pick some of them up, I will look at the wishlist.</div><div><br></div><div>BTW, has anyone attached Gmail to GPT-3?</div><div><br></div><div>Everyone have a merry xmas and happy new year.</div><div><br></div><div>Thanks!</div><div><br></div><div>John</div></div>
</blockquote></div></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_______________________________________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div>
</blockquote></div></div>
</blockquote></div>
</blockquote></div></div></div>