<div dir="ltr"><div dir="ltr">CONFIRMED with freewrl, which console complains:<div><div>bad knot vector, replacing with:</div><div>[0]=0.000000</div><div>[1]=0.000000</div><div>[2]=0.000000</div><div>[3]=0.000000</div><div>[4]=0.500000</div><div>[5]=1.000000</div><div>[6]=1.000000</div><div>[7]=1.000000</div><div>[8]=1.000000</div></div><div>-Doug Sanden</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 27, 2018 at 7:33 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">The NurbsPositionInterpolator in the example at<br>
<br>
<a href="http://www.web3d.org/x3d/content/examples/Basic/NURBS/NurbsPositionInterpolatorExampleIndex.html" rel="noreferrer" target="_blank">http://www.web3d.org/x3d/content/examples/Basic/NURBS/NurbsPositionInterpolatorExampleIndex.html</a><br>
<br>
does not have enough knots. The knot field only has 5 entries but it<br>
needs to have number of control points plus order entries, eg. 5 + 4,<br>
9 entries, according to the last paragraph about the knot field in<br>
<br>
<a href="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/nurbs.html#CommonGeometryFieldsAndCorrectness" rel="noreferrer" target="_blank">http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/nurbs.html#CommonGeometryFieldsAndCorrectness</a><br>
<br>
The example still works but in a limited fashion in NURBS supporting<br>
browsers because in the case of an incorrect number of knots, the<br>
browsers will compute a default uniform knot vector. The problem then<br>
is that the replacement vector is not guaranteed to span the 0 to 1<br>
range, or whatever range the original knot vector had.<br>
<br>
A working knot vector would be<br>
knot='0 0 0 .25 .5 .75 1 1 1'<br>
<br>
-Andreas<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>