[x3d-public] Normal node precision

Andreas Plesch andreasplesch at gmail.com
Tue Apr 28 09:53:54 PDT 2020


Looking at improving the pythonocc x3d generation, we came about the
requirement in X3D that normals need to be normalized to unit length:

https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rendering.html#Normals

However, the spec. is silent on how precisely that requirement needs
to be met. Is it required to be as precise as floats allow ? As an
example, consider

(0.9, 0.43588989435, 0)

This vector has unit length given float precision limits.

Would

(0.9, 0.43589, 0)

still be considered legal although it has a length of 1.00000004605 ?

Does the X3D validator check for this requirement ?

Thanks, Andreas
-- 
Andreas Plesch
Waltham, MA 02453



More information about the x3d-public mailing list