[x3d-public] joint float[3] fields
Andreas Plesch
andreasplesch at gmail.com
Sat Jun 30 08:17:30 PDT 2018
http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/hanim.html#HAnimJoint
has a number of MFFloat type fields:
llimit
ulimit
stiffness
These particular fields have a float[3] signature at the the HAnim
joint interface definition at:
http://www.web3d.org/documents/specifications/19774-1/V2.0/HAnim/ObjectInterfaces.html#Joint
A SFVec3f signature in place of MFFloat in the abstract x3d definition
would therefore allow for tighter validation.
But there may be good reasons why MFFloat was preferred. One reason
may be that these fields could not be considered geometrical vectors
while implementation would typically provide SFVec3f methods which
then would not make sense to use for these fields. Are there other
reasons ?
Nevertheless, it seems to me that a SFVec3f signature may be a better
fit for these fields, since validation benefits would outweigh
application concerns.
-Andreas
--
Andreas Plesch
Waltham, MA 02453
More information about the x3d-public
mailing list