Seb Lee-Delisle

Menu

New Papervision cylinder primitive and destroy methods

Here are a couple of minor but very useful updates contributed by the Papervision user community.

The first is from Paul Neave; thanks to him we now have a new cylinder primitive. He’s added two parameters to the constructor that specify whether you have a top and bottom face, in other words, you can now make tubes!

This is pretty backwards compatible, but note that if you’ve been using the initObject parameter to adjust properties, you’ll get an error as this parameter has now been shifted back a couple of spaces. :-)

public function Cylinder( material:MaterialObject3D=null,
                              radius:Number=100,
                              height:Number=100,
                              segmentsW:int=8,
                              segmentsH:int=6,
                              topRadius:Number=-1,
                              topFace:Boolean=true,
                              bottomFace:Boolean=true,
                              initObject:Object=null );

And also thanks to fellow Brightonian Jonathan Pace from Unwrong, who’s implemented destroy functions in :

Viewport3D
BasicRenderEngine
InteractiveSceneManager
RenderSessionData

This is a fantastic example of the user community making a real contribution to this open source project, and a real testament to the quality and enthusiasm of our user base. So I can’t thank you enough guys!

This entry was posted in Actionscript, Flash 3D, Papervision3D. Bookmark the permalink.

6 Responses to New Papervision cylinder primitive and destroy methods

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current ye@r *