Thank you ! :)

On Apr 21, 11:30 am, Fabrice <[email protected]> wrote:
> Hi Anndorian,
> you could do like this:
>
> import away3d.primitives. LineSegment;
> import away3d.materials. WireframeMaterial;
> [...]
> var segments:int = 20;
> var anglestep:Number = 360/segments;
> var radius:Number = 200;
> var mat:WireframeMaterial = new WireframeMaterial( 0x0000FF, {width:1});
> var line:LineSegment;
> var x:Number = radius;
> var z:Number = 0;
> var angle:Number;
> for(var i:int = 0;i<segments+1; ++i){
>         line = new LineSegment({material:mat});
>         line.start = new Vertex(x, 0, z);
>         angle = anglestep*i;
>         x = Math.cos(-angle/180*Math.PI) *  radius;
>         z = Math.sin(angle/180*Math.PI) * radius;
>         line.end = new Vertex(x, 0, z);
>         view.scene.addChild(line);
>
> }
>
> Fabrice
>
> On Apr 21, 2009, at 8:39 AM, anndorian wrote:
>
>
>
> > Well ... I was looking for something like wireCircle.
>
> > On Apr 21, 3:42 am, Peter Kapelyan <[email protected]> wrote:
> >> You can create a circle-like plane with the RegularPolygon
> >> like
>
> >> myCircle=new RegularPolygon({radius:Num, sides:Num,  
> >> subdivision:Num });
>
> >> Not sure if that's what you wanted, so let me know!
>
> >> -Pete
>
> >> On Mon, Apr 20, 2009 at 6:18 PM, anndorian <[email protected]>  
> >> wrote:
>
> >>> Can anyone give me an example on how to create a 3d circle ? .. or
> >>> some directions ... Thanks.
>
> >> --
> >> ___________________
>
> >> Actionscript 3.0 Flash 3D Graphics Engine
>
> >> HTTP://AWAY3D.COM

Reply via email to