Hi there,
I want to create a custom shape (can be 2D as well )..
Its actually a roof top of a shed. its not a flat roof top in fact its V shape roof top. how would I create that. I have created 2 triangle with the help of polygon primitive ( one on the front and one at the back of the shed ). Now i have to create the top part of the roof top. I want something in which I give x,y,z coordinates for each point may be something like this
var trident:Trident = new Trident(200);
scene.addChild(trident);
var lines:SegmentSet = new SegmentSet();
var Line1:LineSegment = new LineSegment(new Vector3D(0,0,0), new Vector3D(0,128,64), 0xFF0000, 0xFF0000, 3);
var Line2:LineSegment = new LineSegment(new Vector3D(0,128,64), new Vector3D(0,128,128), 0xFF0000, 0xFF0000, 3);
var Line3:LineSegment = new LineSegment(new Vector3D(0,128,128), new Vector3D(0,0,192), 0xFF0000, 0xFF0000, 3);
var Line4:LineSegment = new LineSegment(new Vector3D(0,0,192), new Vector3D(0,0,0), 0xFF0000, 0xFF0000, 3);
lines.addSegment(Line1);
lines.addSegment(Line2);
lines.addSegment(Line3);
lines.addSegment(Line4);
scene.addChild(lines);
How can I have fill in between this shape???
This is pretty urgent any kind of help will be well appreciated.
Cheers,
Tayyab