[x3d-public] BvhConversion1Illustrated example issue
Andreas Plesch
andreasplesch at gmail.com
Wed Aug 8 12:27:21 PDT 2018
http://x3dgraphics.com/examples/X3dForAdvancedModeling/MotionAnimation/BvhConversion1IllustratedIndex.html
is under construction and has an IndexedFaceSet node:
<IndexedFaceSet DEF='DiamondIFS' creaseAngle='0.5' solid='false'
colorIndex='0 0 0 0 0 0 0 0' coordIndex='0 1 2 -1 0 2 3 -1 0 3 4 -1 0
4 1 -1 5 2 1 -1 5 3 2 -1 5 4 3 -1 5 1 4 -1'>
As colorPerVertex is true by default, there are not enough entries in
the colorIndex field. The intention is probably to set colorPerVertex
to false for the node. So a corrected node could be:
<IndexedFaceSet DEF='DiamondIFS' creaseAngle='0.5' solid='false'
colorPerVertex='false' colorIndex='0 0 0 0 0 0 0 0' coordIndex='0 1 2
-1 0 2 3 -1 0 3 4 -1 0 4 1 -1 5 2 1 -1 5 3 2 -1 5 4 3 -1 5 1 4 -1'>
Could validation catch such a mismatch in the number of elements
between fields ?
-Andreas
--
Andreas Plesch
Waltham, MA 02453
More information about the x3d-public
mailing list