Draw a circle.  (like a plane but circle)

Software: Away3D 4.x

fukhaos, Newbie
Posted: 08 June 2012 01:37 AM   Total Posts: 2

I want click in a cube and draw a circle,
like a plane but round.

like a radar over the cube, but this circle must
work like a primitive plane working with the camera.

I`m using away 4.0

   

Avatar
theMightyAtom, Sr. Member
Posted: 08 June 2012 04:17 AM   Total Posts: 669   [ # 1 ]

Try a cylinder.
https://github.com/away3d/away3d-core-fp11/blob/master/src/away3d/primitives/CylinderGeometry.as

 

   

KobeJames, Newbie
Posted: 08 June 2012 02:17 PM   Total Posts: 21   [ # 2 ]

this is my Circle class
version broomstick

 

File Attachments
Circle.as  (File Size: 6KB - Downloads: 399)
   

KobeJames, Newbie
Posted: 08 June 2012 02:18 PM   Total Posts: 21   [ # 3 ]

i’ll upload it later

 

   

fukhaos, Newbie
Posted: 09 June 2012 02:07 AM   Total Posts: 2   [ # 4 ]

thanks !!!

 

   

Avatar
Austen, Newbie
Posted: 09 June 2012 02:12 AM   Total Posts: 21   [ # 5 ]

Hey,

Just to know, how different is your circle class from a flat cylinder?

 

   

KobeJames, Newbie
Posted: 09 June 2012 02:35 AM   Total Posts: 21   [ # 6 ]
Austen - 09 June 2012 02:12 AM

Hey,

Just to know, how different is your circle class from a flat cylinder?

Just a plane,less vertex number, less triangle number then cylinder.

I wirte this class in order to create a stroke edge around the circle.

 

   

Avatar
Austen, Newbie
Posted: 09 June 2012 10:13 PM   Total Posts: 21   [ # 7 ]

oh nice,

i will give it a try!

is it possible to set an “inside radius”, to make a hole in the disc for example?

 

   

Richard Olsson, Administrator
Posted: 16 June 2012 12:07 PM   Total Posts: 1192   [ # 8 ]

As an alternative to the CylinderGeometry, have a look at RegularPolygonGeometry which sounds like exactly what you need. There is however no way of setting an inside radius on either of the two. Unless you want to create the procedure such geometry yourself, I reckon you’re best of modeling this in a modeling tool and import it into Away3d.

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X