technically no, they both describe a point in space, x, y and z.
but the Vertex class is used for a face definition, it defines where
the 3 points of the triangle face object are in space.
Number3D is the one you should use, if you are not defining geometry.
Also many public methods require a Number3D, passing a Vertex would
generate types errors.
Like object.lookAt(Number3D);
Fabrice
On Feb 12, 2009, at 4:47 PM, Ben Gannaway wrote:
Is there a difference between Vertex and Number3d?
On 12 Feb 2009, at 15:49, Peter Kapelyan wrote:
line=new LineSegment({material:new WireColorMaterial("black"),
start:new Number3D(-150,0,-300), end:new Number3D(150,0,300)});
view.addChild(line);
You can chabnge the thickness :
line.material.width=8;
line.material.alpha=.1;
Should work, let me know!
-Pete
On Thu, Feb 12, 2009 at 10:40 AM, Shengzhi <[email protected]>
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
--
___________________
Actionscript 3.0 Flash 3D Graphics Engine
HTTP://AWAY3D.COM