- summary: There is a colorIndex and coordIndex in this gears.x3d file --> X3DJSAIL -validate problem with colorIndex, coordIndex in gears.x3d
See attached file which gives a clean X3D-Edit QA test, but fails with X3DJSAIL -validate, below:
Sorry that this is not in the archive.
The file does inclue coordIndex and colorIndex.
$ export CLASSPATH="C:/Users/jcarl/X3DJSONLD/X3DJSAIL.4.0.full.jar;C:/Users/jcarl/X3DJSONLD/saxon-he-12.8.jar;.;../../..;../java"
$ java org.web3d.x3d.jsail.CommandLine -validate ../data/gears.x3d
CommandLine parameter: "-validate" for model validation
parameter: source file gears.x3d filesize 209813 bytes
Parsing using Document Object Model (DOM) based X3DLoaderDOM...
org.web3d.x3d.sai.InvalidFieldException: IndexedFaceSet containing Color node with 1 values must also include colorIndex or coordIndex field
at org.web3d.x3d.jsail.Geometry3D.IndexedFaceSet.validate(IndexedFaceSet.java:3900)
at org.web3d.x3d.jsail.Shape.Shape.validate(Shape.java:2142)
at org.web3d.x3d.jsail.Grouping.Group.validate(Group.java:1952)
at org.web3d.x3d.jsail.Core.Scene.validate(Scene.java:876)
at org.web3d.x3d.jsail.Core.X3D.validate(X3D.java:4647)
at org.web3d.x3d.jsail.CommandLine.run(CommandLine.java:1150)
at org.web3d.x3d.jsail.CommandLine.main(CommandLine.java:244)
validate results:
[exception] during validation: IndexedFaceSet containing Color node with 1 values must also include colorIndex or coordIndex field