<div dir="ltr">Note that BoxManC.java may be HAnim 1.0.  We have been working on getting our Models compatible with current HAnim standard 2.0, as is published on the Web3D website.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 11, 2020 at 12:55 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">The good news is I'm getting a near clean Java compile from my JavaSerializer.js generated code.  Here's the only error report there:<div><br></div><div>BoxManC.java:246: error: cannot find symbol<br>          .addViewpoint(new Viewpoint().setDEF("Inclined_View").setDescription("Inclined View").setOrientation(new float[] {0f,1f,0f,0.78f}).setPosition(new float[] {2f,1f,2f}))<br>          ^<br>  symbol:   method addViewpoint(Viewpoint)<br>  location: class HAnimHumanoid<br>1 error<br></div><div><br></div><div>Thanks!</div><div><br></div><div>John</div><div><br></div><div>Here's the relevant Java code:</div><div><br></div><div>./jsail/HAnim/HAnimHumanoid.java:       public HAnimHumanoid addViewpoints(HAnimSite newValue)<br>./jsail/HAnim/HAnimHumanoid.java:       public HAnimHumanoid addViewpoints(ProtoInstance newValue)<br>./jsail/HAnim/HAnimHumanoid.java:       public void addViewpoints(org.web3d.x3d.sai.Core.X3DNode[] /* bleah 3 TODO add node typing */  newValue)<br>./jsail/X3DLoaderDOM.java:                                                                      ((HAnimHumanoid)elementObject).addViewpoints((HAnimSite) childX3dElement);<br>./jsail/X3DLoaderDOM.java:                                                                      ((HAnimHumanoid)elementObject).addViewpoints((ProtoInstance) childX3dElement);<br>./sai/HAnim/HAnimHumanoid.java: public void addViewpoints(/* here 8b, saiPackage not found */org.web3d.x3d.sai.Core.X3DNode[] newValue); // acceptable node types #3: HAnimSite<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 11, 2020 at 12:20 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Relevant email:<div><br></div><div><a href="http://web3d.org/pipermail/x3d-public_web3d.org/2016-July/005048.html" target="_blank">http://web3d.org/pipermail/x3d-public_web3d.org/2016-July/005048.html</a> </div><div><br></div><div>Thanks!</div><div><br></div><div>John <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 11, 2020 at 12:16 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Here are errors we get when trying to compile BoxManC.java, first with X3dToJava.xslt version, then with JavaSerializer.js version.<div><br></div><div>Thanks!</div><div><br></div><div>$ javac -cp ~/pythonSAI/X3DJSAIL.4.0.full.jar net/x3djsonld/data/BoxManC.java<br>net\x3djsonld\data\BoxManC.java:347: error: no suitable method found for addViewpoints(Viewpoint)<br>      .addViewpoints(new Viewpoint("Inclined_View").setDescription("Inclined View").setOrientation(0.0f,1.0f,0.0f,.78f).setPosition(2.0f,1.0f,2.0f))<br>      ^<br>    method HAnimHumanoid.addViewpoints(HAnimSite) is not applicable<br>      (argument mismatch; Viewpoint cannot be converted to HAnimSite)<br>    method HAnimHumanoid.addViewpoints(ProtoInstance) is not applicable<br>      (argument mismatch; Viewpoint cannot be converted to ProtoInstance)<br>    method HAnimHumanoid.addViewpoints(X3DNode[]) is not applicable<br>      (argument mismatch; Viewpoint cannot be converted to X3DNode[])<br>1 error<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>$ javac -cp ~/pythonSAI/X3DJSAIL.4.0.full.jar net/coderextreme/data/BoxManC.java<br>net\coderextreme\data\BoxManC.java:175: error: cannot find symbol<br>          .addViewpoint(new Viewpoint().setDEF("Inclined_View").setDescription("Inclined View").setOrientation(new float[] {0f,1f,0f,0.78f}).setPosition(new float[] {2f,1f,2f}))<br>          ^<br>  symbol:   method addViewpoint(Viewpoint)<br>  location: class HAnimHumanoid<br>1 error</div><div><br></div><div>Here is the JSON error when trying to validate BoxManC.json:</div><div><br></div><div>Loading schema<br>Parsing schema<br>Adding schema<br>Schema 3.0 added<br>Schema 3.0 compiled<br>================================================================================<br>File: BoxManC.json<br>Error reading BoxManC.json<br> keyword: additionalProperties<br> dataPath: X3D > Scene > -children > 3 > HAnimHumanoid<br> value: {"@name":"Humanoid","@DEF":"HUMANOID","@info":"|omitted|","@version":"2.<br>0","-skeleton":"|omitted|","-children":"|omitted|","-skinCoord":"|omitted|","-sk<br>in":"|omitted|","-joints":"|omitted|","-sites":"|omitted|","-segments":"|omitted<br>|","-viewpoints":"|omitted|"}<br> message: should not have additional properties<br> params: {"additionalProperty":"@name"}<br> file: BoxManC.json<br> version: 3.0<br><br> keyword: additionalProperties<br> dataPath: X3D > Scene > -children > 3 > HAnimHumanoid > -viewpoints > 0<br> value: {"Viewpoint":"|omitted|"}<br> message: should not have additional properties<br> params: {"additionalProperty":"Viewpoint"}<br> file: BoxManC.json<br> version: 3.0<br><br> keyword: oneOf<br> dataPath: X3D > Scene > -children > 3 > HAnimHumanoid<br> value: {"@name":"Humanoid","@DEF":"HUMANOID","@info":"|omitted|","@version":"2.<br>0","-skeleton":"|omitted|","-children":"|omitted|","-skinCoord":"|omitted|","-sk<br>in":"|omitted|","-joints":"|omitted|","-sites":"|omitted|","-segments":"|omitted<br>|","-viewpoints":"|omitted|"}<br> message: should match exactly one schema in "oneOf"<br> params: {"passingSchemas":null}<br> file: BoxManC.json<br> version: 3.0<br></div><div><br></div><div>Probably it's some issue with version, or putting Viewpoints in an HAnimSite.  Not really sure.</div><div><br></div><div>John</div><div><br></div><div><br></div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>