[x3d-public] Basic examples. -geometry field should be array (MFNode) for RigidBody and according to X3DUOM

John Carlson yottzumm at gmail.com
Fri Jan 4 21:04:15 PST 2019


Files which may be affected:

$ egrep "array|geometry|Ajv" results3.txt
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallBounce.json                                                           
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallBounceSimple.json                                                     
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallJoint.json                                                            
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BodyGeometry.json                                                         
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BounceTrimesh.json                                                        
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/DoubleHingeJoint.json                                                     
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/MotorJoint.json                                                           
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/MovingBody.json                                                           
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/SingleHingeJoint.json                                                     
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/SliderJoint.json                                                          
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/UniversalJoint.json                                                       
Paths:

grep RigidBody results3.txt| grep geometry                                                                                                                                   
 dataPath: X3D > Scene > -children > 3 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 dataPath: X3D > Scene > -children > 2 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 dataPath: X3D > Scene > -children > 2 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 dataPath: X3D > Scene > -children > 1 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 dataPath: X3D > Scene > -children > 3 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 dataPath: X3D > Scene > -children > 1 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 dataPath: X3D > Scene > -children > 1 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 dataPath: X3D > Scene > -children > 1 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 dataPath: X3D > Scene > -children > 2 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 dataPath: X3D > Scene > -children > 1 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 dataPath: X3D > Scene > -children > 1 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             

When should -geometry be an SFNode and when should it be an MFNode (array in JSON Schema)?
Geometry is still an MFNode for NurbsSet and RigidBody in X3DUOM.

Help

Combined errors and files:

0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallBounce.json                                                           
 value: {"@DEF":"BODY-1","@position":"|omitted|","-geometry":"|omitted|"}                                                                                                      
 dataPath: X3D > Scene > -children > 3 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 message: should be array                                                                                                                                                      
 params: {"type":"array"}                                                                                                                                                      
 value: {"@DEF":"BODY-1","@position":"|omitted|","-geometry":"|omitted|"}                                                                                                      
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallBounceSimple.json                                                     
 value: {"@DEF":"BODY-1","@position":"|omitted|","-geometry":"|omitted|"}                                                                                                      
 dataPath: X3D > Scene > -children > 2 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 message: should be array                                                                                                                                                      
 params: {"type":"array"}                                                                                                                                                      
 value: {"@DEF":"BODY-1","@position":"|omitted|","-geometry":"|omitted|"}                                                                                                      
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallJoint.json                                                            
 value: {"@DEF":"BODY-1","@mass":10000,"@useGlobalGravity":false,"-geometry":"|omitted|"}                                                                                      
 dataPath: X3D > Scene > -children > 2 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 message: should be array                                                                                                                                                      
 params: {"type":"array"}                                                                                                                                                      
 value: {"@DEF":"BODY-1","@mass":10000,"@useGlobalGravity":false,"-geometry":"|omitted|"}                                                                                      
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BodyGeometry.json                                                         
 value: {"@DEF":"BODY-1","-geometry":"|omitted|"}                                                                                                                              
 dataPath: X3D > Scene > -children > 1 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 message: should be array                                                                                                                                                      
 params: {"type":"array"}                                                                                                                                                      
 value: {"@DEF":"BODY-1","-geometry":"|omitted|"}                                                                                                                              
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BounceTrimesh.json                                                        
 value: {"@DEF":"BODY-1","@position":"|omitted|","-geometry":"|omitted|"}                                                                                                      
 dataPath: X3D > Scene > -children > 3 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 message: should be array                                                                                                                                                      
 params: {"type":"array"}                                                                                                                                                      
 value: {"@DEF":"BODY-1","@position":"|omitted|","-geometry":"|omitted|"}                                                                                                      
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/DoubleHingeJoint.json                                                     
 value: {"@DEF":"BODY-1","@mass":0.1,"@position":"|omitted|","@useGlobalGravity":false,"-geometry":"|omitted|"}                                                                
 dataPath: X3D > Scene > -children > 1 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 message: should be array                                                                                                                                                      
 params: {"type":"array"}                                                                                                                                                      
 value: {"@DEF":"BODY-1","@mass":0.1,"@position":"|omitted|","@useGlobalGravity":false,"-geometry":"|omitted|"}                                                                
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/MotorJoint.json                                                           
 value: {"@DEF":"BODY-1","@mass":0.1,"@position":"|omitted|","@useGlobalGravity":false,"-geometry":"|omitted|"}                                                                
 dataPath: X3D > Scene > -children > 1 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 message: should be array                                                                                                                                                      
 params: {"type":"array"}                                                                                                                                                      
 value: {"@DEF":"BODY-1","@mass":0.1,"@position":"|omitted|","@useGlobalGravity":false,"-geometry":"|omitted|"}                                                                
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/MovingBody.json                                                           
 value: {"@DEF":"BODY-1","@linearVelocity":"|omitted|","@mass":0.1,"@position":"|omitted|","-geometry":"|omitted|"}                                                            
 dataPath: X3D > Scene > -children > 1 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 message: should be array                                                                                                                                                      
 params: {"type":"array"}                                                                                                                                                      
 value: {"@DEF":"BODY-1","@linearVelocity":"|omitted|","@mass":0.1,"@position":"|omitted|","-geometry":"|omitted|"}                                                            
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/SingleHingeJoint.json                                                     
 value: {"@DEF":"BODY-1","@mass":10000,"@position":"|omitted|","@useGlobalGravity":false,"-geometry":"|omitted|"}                                                              
 dataPath: X3D > Scene > -children > 2 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 message: should be array                                                                                                                                                      
 params: {"type":"array"}                                                                                                                                                      
 value: {"@DEF":"BODY-1","@mass":10000,"@position":"|omitted|","@useGlobalGravity":false,"-geometry":"|omitted|"}                                                              
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/SliderJoint.json                                                          
 value: {"@DEF":"BODY-1","@mass":0.1,"@position":"|omitted|","@useGlobalGravity":false,"-geometry":"|omitted|"}                                                                
 dataPath: X3D > Scene > -children > 1 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 message: should be array                                                                                                                                                      
 params: {"type":"array"}                                                                                                                                                      
 value: {"@DEF":"BODY-1","@mass":0.1,"@position":"|omitted|","@useGlobalGravity":false,"-geometry":"|omitted|"}                                                                
0 Ajv 3.2 Validation failed on C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/UniversalJoint.json                                                       
 value: {"@DEF":"BODY-1","@angularVelocity":"|omitted|","@mass":0.1,"@position":"|omitted|","@useGlobalGravity":false,"-geometry":"|omitted|"}                                 
 dataPath: X3D > Scene > -children > 1 > RigidBodyCollection > -bodies > 0 > RigidBody > -geometry                                                                             
 message: should be array                                                                                                                                                      
 params: {"type":"array"}                                                                                                                                                      
 value: {"@DEF":"BODY-1","@angularVelocity":"|omitted|","@mass":0.1,"@position":"|omitted|","@useGlobalGravity":false,"-geometry":"|omitted|"}                                                                                    

Plus there are 2 geometry fields in the X3DUOM under ParticleSystem.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190104/c8d3c313/attachment-0001.html>


More information about the x3d-public mailing list