The Open Source Physics website will be unavailable Friday evening through Saturday afternoon as electrical work occurs in the American Center of Physics server room. Down time will begin at 6PM Eastern Time on Friday. Service is expected to resume by 6PM on Saturday, July 30.

Education Prize Logo
Science SPORE Prize
November 2011

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

how to draw polygon in EJSS models?

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

how to draw polygon in EJSS models? - Sep 24, 2013 at 3:39AM
lookang Avatar
175 Posts

dear EJS community,

how to draw polygon in EJSS models?

previously in EJS,
X Data = new double[] {-0.5, 0.5, 0}
Y Data = new double[] {0.0, 0.0, 1.0}

but in in EJSS, how do i define the points of the polygon?

Post edited September 24, 2013 at 3:39 AM EST.

Attached File:

OSP@SG blog
OSP@SG Digital Library

Current Replies - View all
Re: how to draw polygon i...   (Francisco Esquembre - Sep 24, 2013 at 4:28AM)
Re: Re: how to draw polyg...   (lookang - Sep 24, 2013 at 5:38AM)
Re: how to draw polygon i...   (Wolfgang - Sep 24, 2013 at 7:48AM)
The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics