[x3d-public] X3DJSAIL: Usage of addChild witth fieldObject and fieldValueObject?

yottzumm at gmail.com yottzumm at gmail.com
Mon Feb 27 17:12:35 PST 2017


Appears that I can’t use geometry (Box, Sphere) as a child of field or fieldValue in JSON?  Would addChildren work better?

Thanks,

John

rubikOnFire.java:101: error: incompatible types: SphereObject cannot be converted to X3DChildNode
                field0_0_4_0_2.addChild(Sphere0_0_4_0_2_0);
                                        ^
rubikOnFire.java:142: error: incompatible types: SphereObject cannot be converted to X3DChildNode
                field0_0_6_0_2.addChild(Sphere0_0_6_0_2_0);
                                        ^
rubikOnFire.java:209: error: incompatible types: SphereObject cannot be converted to X3DChildNode
                field0_0_8_0_2.addChild(Sphere0_0_8_0_2_0);
                                        ^
rubikOnFire.java:276: error: incompatible types: SphereObject cannot be converted to X3DChildNode
                field0_0_10_0_2.addChild(Sphere0_0_10_0_2_0);
                                         ^
rubikOnFire.java:339: error: incompatible types: BoxObject cannot be converted to X3DChildNode
                fieldValue0_0_12_2.addChild(Box0_0_12_2_0);
                                            ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
5 errors
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170227/3d76778e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rubikOnFire.java
Type: application/octet-stream
Size: 17564 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170227/3d76778e/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rubikOnFire.json
Type: application/json
Size: 14646 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170227/3d76778e/attachment-0001.json>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rubikOnFire.x3d
Type: application/octet-stream
Size: 6294 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170227/3d76778e/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rubikOnFire.x3d.new
Type: application/octet-stream
Size: 3994 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170227/3d76778e/attachment-0005.obj>


More information about the x3d-public mailing list