Hi,
how would you guys proceed to slice a cylinder like this example ?
Maybe the Cylinder primitive is not a good starting point for that ?
Thanks…
Pie Charts - Lathe ExtrusionSoftware: Away3D 3.x |
||
achim, Newbie
Posted: 22 June 2011 03:00 AM Total Posts: 20 |
||
achim, Newbie
Posted: 23 June 2011 10:33 AM Total Posts: 20 [ # 1 ] I’ve found that Lathe Extrusion is a good way to build my Pie Chart. But, if I can set the angle value of each part through the parameter “revolutions” :
this._pie1=new LatheExtrusion(aPoints,{axis: "y", revolutions: .7, subdivision: 72, scale: 2,offsetRadius:70}); I don’t know how to modify it later…
Here you can see what I’ve done so far : circular Chart |
||
|
||
achim, Newbie
Posted: 30 June 2011 03:09 PM Total Posts: 20 [ # 3 ] problem seems to be in the view.render();
TypeError: Error #1009: Cannot access a property or method of a null object reference. line 90 is where is called on ENTER_FRAME view.render(). |
||
Fabrice Closier, Administrator
Posted: 30 June 2011 03:29 PM Total Posts: 1265 [ # 4 ] I have added a Lathe demo class in Broomstick. if you run it, one of the displayed examples on screen is a Pie chart. I see you use 3.x, but it should be similar codewize for 3.x and even 2.x. |
||
|
||
Fabrice Closier, Administrator
Posted: 01 July 2011 08:52 AM Total Posts: 1265 [ # 6 ] in git & svn.—> extrusions.LatheExtrude.as |
||
achim, Newbie
Posted: 01 July 2011 01:22 PM Total Posts: 20 [ # 7 ] Thanks again.
_revolutions = (_revolutions>.001)? _revolutions : .001; Shouldn’t it be
_revolutions = val;
|
||
Fabrice Closier, Administrator
Posted: 01 July 2011 01:30 PM Total Posts: 1265 [ # 8 ] Actually it should be _revolutions = (val>.001)? val : .001; Will correct asap |
||
|
||
achim, Newbie
Posted: 05 July 2011 09:56 PM Total Posts: 20 [ # 10 ] I’ve investigated the code a bit, and I haven’t found anything so far that’d let me think there’s a hope to be able to change the size of my pie pieces with LatheExtrusion? (but, again, I’m totally noob regardingAway3D…) |
||
mcglynn, Newbie
Posted: 26 September 2011 12:07 AM Total Posts: 1 [ # 11 ] I have just started playing around with Away3D, and wrote a basic “Wedge” primitive that can be used to create a pie chart. I posted a sample at http://www.mikemcglynn.com/blog/?p=229 |
||
Tareq Battat, Newbie
Posted: 29 March 2012 10:47 PM Total Posts: 5 [ # 12 ]
Please guys I have facing the same problem when I trying to change the revolutions value of extrusion after adding my pie chart to scene, I use version 3.6 can anybody help solving these like issue, and we will thanks him a lot. |