Explode plugin

 
 
 
Posted by:jcdeblok
Data created:17 October 2012

As a learning project I'm trying to make a modifer that explodes an object into it's polygons, so each polygon has it's own vertexes and can be translated independently.

I've managed to do it for a single polygon, I can select which one and the with what offset it is moved along the face normal. See attached screen shot.

Now i'm stuck into doing this for all polygons at once, I can't figure out how to do this with a 'series' or in other way. My graph is attached as well, just load it into a 'GeometryModifier' and play with the 'face index' and 'offset' to see the result. The goal is to have all polygons do this at the same time.


Attached Files:
Image 1
>explode.ctx (40337 bytes),

Ok, I'll peek at it after I'm done debugging current stuff, thanks for attaching the scene.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Small update, it now works for n-faced polygons as well (was quad only)  and it removes the orginal poly from the basemesh.

I must say it is really fun to work with when you get the hang of it a little. one thing I've noticed:

If I drag out a polygon wire and click on empty space noting happens, shouldn't a type-node be created then? when I manualy create a type-node and wire the polygons I can access al the propeties and methods of the array class but they aren't listed alphabetically, 'count' for example is near the bottom of it all, this can make it a bit hard to find what you're looking for.


Attached Files:

>explode2.ctx (41333 bytes),

Great to hear that you're making it work. Regarding type value node, I actually experienced a similar thing before, I need to debug that. If I open the scene with the polygon you attached will I be able to reproduce it?

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Here it happens everytime:

1) create object with a 'geometryModifier' on it

2) in the graph then drag out 'mesh' to empty space (a type node appears)

3) from this type node drag 'polgons' to empty space, nothing happens now.

I think the expected behaviour is to always create a typenode when something is dragged into empty space.