you can do it this way:

import both classes WireframeMaterial && LineSegment

var mat:WireframeMaterial = new WireframeMaterial( 0x000000, {width:1});
var seg:LineSegment = new LineSegment({material:mat});
seg.start = new Vertex(0, 0 ,0);
seg.end = new Vertex(150, 50 ,0);
this.view.scene.addChild(seg);


welcome to Away Shengzhi!

Fabrice


On Feb 12, 2009, at 4:40 PM, Shengzhi wrote:


Hi all,

I just started learning Away3D two days ago and it's been great fun.
Apologies in advance if this post is in the wrong place or overly
obvious.

I would like to draw a line in 3D space, e.g. from point 0,0,0 to
150,50,100 with say thickness=1, color=black. What is the simplest way
to do this?

I was looking at the PathExtrude class but I don't need any cool
extrusions, just a simple line.

Thank you

Regards,

Shengzhi

Reply via email to