Jump to content
Thomas Helzle

Toms "Learning Houdini" Gallery

Recommended Posts

Then I thought I should take it to the third dimension and came up with a funny solution:

SpaceDivision_3D_v003.thumb.jpg.8d48f3ce6704bbd58a3be7b4bae3c313.jpg

This is about 12 divisions from a cube.

My idea was, that I would pack the initial cube, check the boundingbox in primitive mode in my loop and if it contained at least one point, "subdivide" it by scaling it down by 0.5, unpack it and place one still packed downscaled cube on each point of the resulting unpacked cube with copy to points. If the cube contains no points, it would not be in the "do" group so I would not scale or unpack it and place only one packed cube at the centroid point - redundant but works compiled where a merge does not. 

I guess there are better algorithms out there, but I enjoyed the compact simplicity of this one.
Compiled it's still rather fast, although no longer realtime as the 2D one.

Cheers,

Tom

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×