[x3d-public] The case for missing coordIndex. Computed coordinates and coordIndex in Script initialize().

John Carlson yottzumm at gmail.com
Thu Oct 26 00:22:15 PDT 2017


I create my coordIndex and coordinates in my initialize() function.  So I shouldn’t have to specify them in the XML, right?  X3DJSAIL complains! See attached.  Not specifying them in advance really reduces the size of my files.  I really would like to specify a sphere, as a grid or as an *hedron, but here’s no way to specify a sphere with additional subdivisions in X3D (X3DOM yes—but aliasy).

I think even X_ITE doesn’t initialize my coordinates or coordIndex from script anymore, but looking into it.  What’s going on?

John

org.web3d.x3d.sai.InvalidFieldException: IndexedFaceSet containing Coordinate node must also include coordIndex field
org.web3d.x3d.sai.InvalidFieldException: IndexedFaceSet containing Coordinate node must also include coordIndex field
        at org.web3d.x3d.jsail.Geometry3D.IndexedFaceSetObject.validate(IndexedFaceSetObject.java:3006)
        at org.web3d.x3d.jsail.Shape.ShapeObject.validate(ShapeObject.java:1404)
        at org.web3d.x3d.jsail.Grouping.TransformObject.validate(TransformObject.java:1799)
        at org.web3d.x3d.jsail.Core.ProtoBodyObject.validate(ProtoBodyObject.java:645)
        at org.web3d.x3d.jsail.Core.ProtoDeclareObject.validate(ProtoDeclareObject.java:844)
        at org.web3d.x3d.jsail.Core.SceneObject.validate(SceneObject.java:651)
        at org.web3d.x3d.jsail.Core.X3DObject.validate(X3DObject.java:2236)
        at org.web3d.x3d.jsail.Core.X3DObject.toFileStylesheetConversion(X3DObject.java:721)
        at org.web3d.x3d.jsail.Core.X3DObject.toFileStylesheetConversion(X3DObject.java:612)
        at org.web3d.x3d.jsail.Core.X3DObject.toFileJSON(X3DObject.java:1386)
        at net.coderextreme.data.flowers.main(flowers.java:80)
Exception in thread "main" org.web3d.x3d.sai.InvalidFieldException: IndexedFaceSet containing Coordinate node must also include coordIndex field
        at org.web3d.x3d.jsail.Geometry3D.IndexedFaceSetObject.validate(IndexedFaceSetObject.java:3006)
        at org.web3d.x3d.jsail.Shape.ShapeObject.validate(ShapeObject.java:1404)
        at org.web3d.x3d.jsail.Grouping.TransformObject.validate(TransformObject.java:1799)
        at org.web3d.x3d.jsail.Core.ProtoBodyObject.validate(ProtoBodyObject.java:645)
        at org.web3d.x3d.jsail.Core.ProtoDeclareObject.validate(ProtoDeclareObject.java:844)
        at org.web3d.x3d.jsail.Core.SceneObject.validate(SceneObject.java:651)
        at org.web3d.x3d.jsail.Core.X3DObject.validate(X3DObject.java:2236)
        at org.web3d.x3d.jsail.Core.X3DObject.toFileStylesheetConversion(X3DObject.java:721)
        at org.web3d.x3d.jsail.Core.X3DObject.toFileStylesheetConversion(X3DObject.java:612)
        at org.web3d.x3d.jsail.Core.X3DObject.toFileJSON(X3DObject.java:1386)
        at net.coderextreme.data.flowers.main(flowers.java:80)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20171026/5ec762fc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flowers.java
Type: application/octet-stream
Size: 19142 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20171026/5ec762fc/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flowers.x3d
Type: application/octet-stream
Size: 11406 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20171026/5ec762fc/attachment-0003.obj>


More information about the x3d-public mailing list