Predefined Polygons
Posted: Sat Dec 19, 2009 1:01 am
Just a very little and quick question: I want to create Polygons via scene.addPolygon with predefined size and shape. How do I put them correct into the { } brackets?
Scene.addPolygon({vecs := [[x, y], [x, y], ...]})
standardtoaster wrote:
- Code: Select all
Scene.addPolygon({vecs := [[x, y], [x, y], ...]})
Each point on a polygon is a point on the Cartesian Coordinate graph.
Scene.addPolygon{surfaces := [[[x - Start surface one,y - Start surface one]~[x - End surface one, y - End surface one] ],[[x - Start surface two,y - Start surface two]~[x - End surface two, y - End surface two] ]]] }