[x3d-public] These files failed my modifications of Roy's X3D JSON schema

John Carlson yottzumm at gmail.com
Thu Apr 1 15:09:23 PDT 2021


On 3/30/21 9:52 PM, John Carlson wrote:
> file: 
> /c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Scanning/X3dMeshDesignPattern.json


Data file (note -normal).

{ "PointSet":
                               {
                                 "-coord":
                                   { "Coordinate":
                                     {
                                       "@DEF":"VertexValues",
"@point":[1,1,0,1,-1,0,-1,-1,0,-1,1,0]
                                     }
                                   },
                                 "-color":
                                   { "Color":
                                     {
                                       "@DEF":"VertexColors",
"@color":[1,0,0,0,1,0,0,0,1,1,1,1]
                                     }
                                   },
                                 "-children":[
                                   {
                                     "#comment":"Currently invalid in 
X3D v3.3: Normal node not allowed inside PointSet"
                                   },
                                   {
                                     "#comment":"Of note: MeshLab allows 
assigning normals to a point cloud"
                                   }
                                 ],
                                 "-normal":
                                   { "Normal":
                                     {
                                       "@DEF":"VertexNormals"
                                     }
                                   }
                               }
                             }


Roy's schema does not handle -normal, as appears in v4.0 JSON schema and 
X3DUOM 4.0.  Roy's schema needs to be updated.  Will modify my local copy.


So of the 3 files, two were fixed by modifying Roy's schema. The first 
one I discussed will require handling a Mantis issue.


If it's important to get these changes to Roy's schema into Mantis, I 
will provide diffs to Roy's schema.


Thanks for your attention.


John




More information about the x3d-public mailing list