APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

issue with _view.addPoint() function

Return to the EJS Modeling forum
Login to post to this thread

issue with calling _view.addPoint
Nick Gross
17 Posts

During my initialization, I would like to draw several curves in 3D that will be static during the evolution.  The curves do not have a functional form and I am drawing them using and update scheme. I set up a Trail3D object for each curve and explicitly calling _view.addPoint from a loop in my initialization. This worked fine in a previous release of EJS, but with the most recent update it fails.

With the current update, no error is generated and the code seems to run and the display window opens but it is all grey and nothing, not even the other objects, seem to be displayed.  Worse yet, it does not look like I can recreate this issue routinely.

Has anyone else seen this error?
Is there a better way to do what I want to do?

Thanks for the help


Current Replies - View all
Re: issue with calling _v...   (Francisco Esquembre - )
Re: issue with calling _v...   (Wolfgang - )
OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book