PDA

View Full Version : Slicing models into its convex constituents


DiegoFloor
02-27-2012, 05:40 AM
Hey there,

Just out of curiosity, is there a script that does what the title says already? I couldn't find anything on this forum and other sites. If not, I have an algorithm in mind and would appreciate some feedback, as I've never scripted in Max before.

Ok, with a model selected, the script will analyze all edges to find the ones in which its polygons form an angle smaller than pi (considering the normals of the faces). I pick one of these faces and align with it the 'slice model' thing.. (not sure if I would have to code it or maybe use some existing modifier) that separates it into two objects. Repeat the edge finding and slice procedure in the now smaller object until there are no more edges satisfying the condition (it's convex now). Then repeat the whole procedure on the newly created models.

I can see a few problems with it. The slice model procedure could cut unnecessary parts of the model.. the script might still work but it's not the most efficient way, as we would end up with more objects than we need.

Ideas? suggestions? :)

larex
02-27-2012, 10:06 AM
Did you try, put on your model masfx riggid body, with composite collision shape, end then click generate. it will divide yout model to convex meshes and there are also paramaters for tweaking

DiegoFloor
02-27-2012, 05:43 PM
I didn't know such function existed! It's new in 2012, which I don't have, but it's good to know.. thanks

CGTalk Moderation
02-27-2012, 05:43 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.