<div dir="auto">Don't forget that output XML from X3DJSAIL will need to remove the name when USE is used.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sep 11, 2017 10:45 AM, "Don Brutzman" <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">cc: Roy<br>
<br>
On 9/10/2017 11:23 PM, John Carlson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Did you address why setMaterial does not set the containerField?  Should it?   Thanks!<br>
</blockquote>
<br>
Interesting possibility, let me think about it further.  Might be a general pattern here when inserting ProtoInstance in non-default containerField locations.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  I will test with X3dToJava.xslt, if that is up to date.<br>
<br>
John<br>
</blockquote>
<br>
I haven't yet worked on X3dToJava.xslt or X3dToJson.xslt output serialization regarding the current issue for ProtoInstance USE not having a name field.  Am expecting that Java will need the name field but JSON will not.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sep 10, 2017 11:47 PM, "Don Brutzman" <<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a> <mailto:<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>>> wrote:<br>
<br>
    The latest X3DJSAIL now reflects the matching changes in X3D XML Schema and X3D Unified Object Model to no longer require ProtoInstance name for strict validation.  This allows a ProtoInstance USE node to match the original ProtoInstance DEF.<br>
<br>
    It remains a semantic error nevertheless to create a ProtoInstance without a name, just as it is required in other encodings.<br>
<br>
    X3DJSAIL ProtoInstanceObject validate() method will throw an error if neither the name field nor the USE field is defined.<br>
<br>
    Your other recent finds regarding index bounds on IndexedTriangle* nodes are also incorporated.<br>
<br>
    So it may be time to refresh your pyjnius efforts.<br>
<br>
    Looking forward to continuing progress.<br>
<br>
<br>
<br>
    On 8/11/2017 11:29 AM, John Carlson wrote:<br>
<br>
        Don,<br>
<br>
        Please check the order of my calls, and then check X3DJSAIL.  Thanks!<br>
<br>
        Traceback (most recent call last):<br>
<br>
            File "arc.py", line 380, in <module><br>
<br>
              ProtoInstance64.addFieldValue(<wbr>fieldValue65)<br>
<br>
            File "jnius\jnius_export_class.pxi"<wbr>, line 638, in jnius.JavaMethod.__call__ (jnius\jnius.c:25616)<br>
<br>
            File "jnius\jnius_export_class.pxi"<wbr>, line 715, in jnius.JavaMethod.call_method (jnius\jnius.c:26599)<br>
<br>
            File "jnius\jnius_utils.pxi", line 93, in jnius.check_exception (jnius\jnius.c:4619)<br>
<br>
        jnius.JavaException: JVM exception occurred: ERROR_VALUE_NOT_FOUND, ProtoInstance name field is required but no value found.<br>
<br>
        Also, I got this interesting error from python generated from xml generated from python generated from xml:<br>
<br>
        Traceback (most recent call last):<br>
<br>
            File "X3dHeaderPrototypeSyntaxExamp<wbr>les_new.py", line 289, in <module><br>
<br>
              Appearance62.setProtoInstance(<wbr>ProtoInstance63)<br>
<br>
        AttributeError: 'org.web3d.x3d.jsail.Shape.App<wbr>earanceObject' object has no attribute 'setProtoInstance'<br>
<br>
        Probably something’s wrong with the XML output from the original python. I am sending the original XML and python as well.  There’s probably an issue with my original python or X3DJSAIL. It must be calling setMaterial and it’s getting translated to setProtoInstance somehow.  Indeed the containerField on the ProtoInstance didn’t get set with setMaterial) in the output XML.  I think this may be a known bug. Please fix.<br>
<br>
        John<br>
<br>
<br>
<br>
    all the best, Don<br>
    --     Don Brutzman  Naval Postgraduate School, Code USW/Br <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a> <mailto:<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>><br>
    Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA <a href="tel:%2B1.831.656.2149" value="+18316562149" target="_blank">+1.831.656.2149</a> <tel:%2B1.831.656.2149><br>
    X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzma<wbr>n</a> <<a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzm<wbr>an</a>><br>
<br>
<br>
</blockquote>
<br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><br>
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   <a href="tel:%2B1.831.656.2149" value="+18316562149" target="_blank">+1.831.656.2149</a><br>
X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzma<wbr>n</a><br>
</blockquote></div></div>