[x3d-public] X3DJSAIL. Use of fields in ProtoInterface. addField() no longer works.

yottzumm at gmail.com yottzumm at gmail.com
Tue Feb 14 20:00:18 PST 2017


Please provide example of calling setChildren() with multiple field objects, or perhaps allow addChildren().  Haven’t spent too much time on this, addChildren() may work.  Perhaps fix addField() to allow MFNode and SFNode, or remove from API??  Have validate call setChildren or addChildren for MFNodes and SFNodes?  Many choices here.


Abox.java (attached)
Exception in thread "main" org.web3d.x3d.sai.InvalidProtoException: field name='myShape' with type='MFNode' cannot have any simple-type value (newValue='').  Use setChildren() method instead.
        at org.web3d.x3d.jsail.Core.fieldObject.setValue(fieldObject.java:770)
        at org.web3d.x3d.jsail.Core.fieldObject.validate(fieldObject.java:1044)
        at org.web3d.x3d.jsail.Core.ProtoInterfaceObject.addField(ProtoInterfaceObject.java:466)
        at abox.main(abox.java:88)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170214/013914f7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: abox.java
Type: application/octet-stream
Size: 6390 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170214/013914f7/attachment.obj>


More information about the x3d-public mailing list