[x3d-public] Simple example of X3DConcreteNode/addChild problem: comments fixed

Brutzman, Donald (Don) (CIV) brutzman at nps.edu
Fri May 17 18:42:01 PDT 2019


but of course - good catch.

i have updated PythonPipeliningSerializer.js to append a line break (plus indents) when the last node in a child element array is a comment.

On 5/17/2019 12:44 AM, John Carlson wrote:
> Yeah, merely putting in a newline at the end of the comment seems to have fixed it.
> 
> John
> 
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
> 
> *From: *John Carlson <mailto:yottzumm at gmail.com>
> *Sent: *Friday, May 17, 2019 2:02 AM
> *To: *Brutzman, Donald (Don) (CIV) <mailto:brutzman at nps.edu>
> *Cc: *X3D Graphics public mailing list <mailto:x3d-public at web3d.org>; aono at tut.jp <mailto:aono at tut.jp>
> *Subject: *RE: Simple example of X3DConcreteNode/addChild problem
> 
> Put a newline after comments in python.
> 
> John
> 
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
> 
> *From: *Brutzman, Donald (Don) (CIV) <mailto:brutzman at nps.edu>
> *Sent: *Thursday, May 16, 2019 5:50 AM
> *To: *John Carlson <mailto:yottzumm at gmail.com>
> *Cc: *X3D Graphics public mailing list <mailto:x3d-public at web3d.org>; aono at tut.jp <mailto:aono at tut.jp>
> *Subject: *Re: Simple example of X3DConcreteNode/addChild problem
> 
> p.s. a new python compilation problem seems to have crept in.  Not sure why this is occurring, perhaps because definition of X3D0 is now wrapped in parentheses to simplify multiline continuation?
> 
> Example attached, here is current build output.
> 
> Loading HelloTriangle.py (pipeline syntax) with python, if successful then saving and validating as HelloTriangle_RoundTrip2.x3d version:
> 
>     File "C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForWebAuthors/Chapter01TechnicalOverview//HelloTriangle.py", line 33
> 
>       X3D0.toFileX3D("/x3d-code/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter01TechnicalOverview//HelloTriangle_RoundTrip.x3d")
> 
>          ^
> 
> SyntaxError: invalid syntax
> 
> all the best, Don
> 
> -- 
> 
> Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
> 
> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
> 
> X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
> 


all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman


More information about the x3d-public mailing list