<div dir="ltr">Andreas<div>swept and swung are in The Nurbs Book (and not too hard - a 2D curve, then extrude that curve in a few different ways. Swept: along an arbitrary 3D curve,could be a curbs curve. Swung: around some line/axis lying in the plane of the curve)<div>-Doug</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Sep 29, 2018 at 10:34 AM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Based on the initial Ayam x3dom Nurbs node support for PatchSurface<br>
and TrimmedSurface, I am working on more complete and animation<br>
capable Nurbs component implementation in my x3dom NURBS branch.<br>
<br>
Here are examples of working nodes:<br>
<br>
<a href="https://rawgit.com/andreasplesch/x3dom/Nurbs/test/functional/nurbs/inline.html" rel="noreferrer" target="_blank">https://rawgit.com/andreasplesch/x3dom/Nurbs/test/functional/nurbs/inline.html</a><br>
<br>
I added NurbsCurve and the interpolators. In addition, the web worker<br>
code can now be bundled, and is optimized to support animation of<br>
control points and weights which do not require retriangulation. This<br>
makes the AnimatedNurbsPatchSurfaceHead example borderline ok to<br>
animate on a regular desktop but also shows the limits off CPU (via<br>
js) only animation although there is additional room for further<br>
optimization (for example using transferables for communicating with<br>
workers). A more substantial improvement has to come from shaders.<br>
<br>
I think most Nurbs examples from Basic Archive are working, after<br>
fixing them as previously reported.<br>
<br>
Some details: The Curve tessellation is strictly subdivision following<br>
the tessellation hints as speced. The Ayam surface tessellation is<br>
adaptive with a threshold being influenced by the tessellation hints<br>
as well.<br>
The tessellation (and animation by deformation) will spawn web<br>
workers/threads. The maximum number of workers is aggressively set and<br>
can max out CPUs. I probably should expose the number in a scene<br>
setting to scenes. It is defined in the x3dom-nurbs-pool.js file.<br>
Vertex animation does not recalculate automatic normals currently for<br>
performance but that could be added.<br>
<br>
The SweptSurface and SwungSurface are not implemented and I do not<br>
have a good idea how to.<br>
The NurbsTextureCoordinate is not implemented. Is it used ? Are the<br>
default texture coordinates usually ok ?<br>
<br>
Any comment or feedback welcome,<br>
<br>
-Andreas<br>
<br>
<br>
<br>
<br>
-- <br>
Andreas Plesch<br>
Waltham, MA 02453<br>
<br>
_______________________________________________<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>