cspears2002 Posted March 20, 2009 Share Posted March 20, 2009 I created a poly mesh box using the Box SOP. Since the Axis Divisions parameter is set to 4, each side of the cube has 9 faces. How can I generate 9 separate cubes from the poly mesh box? I'm sure there is a simple way to do this, but I just can't think of it right now. Quote Link to comment Share on other sites More sharing options...
graham Posted March 20, 2009 Share Posted March 20, 2009 This can easily be accomplished using an Iso Offset sop outputting a Tetra mesh and implicit cubes. See the attached file. The bounds are overridden to be the exact size of the input box to it's nice and exact. box_cubes.hip Quote Link to comment Share on other sites More sharing options...
odforceuser42 Posted March 20, 2009 Share Posted March 20, 2009 maybe not helpful, but i thought i'd throw something out... i don't know if this is what you are after, but in the David Gary ( cmiVFX ) procedural cities "dvd" - he does something with a grid and breaks it up into squares. he basically scales down the individual squares rather than the source grid. ( sorry, only been thru it once, and don't rem the method he used ). other than that, could a Copy SOP accomplish what you want? offsetting the location of the copies w/ the $BBX, Y, Z local variable? Quote Link to comment Share on other sites More sharing options...
cspears2002 Posted March 20, 2009 Author Share Posted March 20, 2009 This can easily be accomplished using an Iso Offset sop outputting a Tetra mesh and implicit cubes. See the attached file.The bounds are overridden to be the exact size of the input box to it's nice and exact. Hmmm...I tried that technique...looks like the resulting geometry is bigger than the input for some reason... chris_building_v02_isooffset.hipnc Quote Link to comment Share on other sites More sharing options...
Guest Swann Posted March 20, 2009 Share Posted March 20, 2009 (edited) Use -ch("../box1/sizex")/2, -ch("../box1/sizey")/2 etc. instead of bbox. For me it works. Edited March 20, 2009 by SWANN Quote Link to comment Share on other sites More sharing options...
kumpa Posted March 20, 2009 Share Posted March 20, 2009 It isn't exactly what you are after, but you can try Measure SOP, set it to compute area and use sqrt($AREA) as extrude depth. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.