nvpx.CreateConvexHull Error - Cannot convert Editable Mesh to type Mesh

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  04 April 2012
nvpx.CreateConvexHull Error - Cannot convert Editable Mesh to type Mesh

After updating the PhysX plugin to 2.71 in Max 2012 a chunk of code now fails. In fact, the code fails in a vanilla install of Max 2013 too. The following code worked for me in previous versions, though.


 
/*Make a teapot*/
tp = TeaPot()
 
/*convert teapot to mesh to pass into PhysX function*/
ConvertToMesh tp
 
/*Create an empty Editable_mesh to store the new hull*/
newnode = Editable_mesh() 
 
newnode.mesh = nvpx.CreateConvexHull (tp) 44 0 --Exception happens here! 
 
update newnode


The exception that happend:
Quote: -- Unable to convert: $Editable_Mesh:Teapot001 @ [0.000000,0.000000,0.000000] to type: Mesh


Any ideas? Is it that I was originally using this function incorrectly (but it magically worked), or is this a new bug?
__________________
Shawn Olson
Autodesk Expert Elite
3ds Max Charter Member

Developer of:
Wall Worm Tools for the Source Game Engine
CorVex Level Design Plugin
 
  share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:14 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.