Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Demolishun755526dAlso, the algorithm may not be that hard. I have been thinking it through in my mind. But once I have the objects I then need to figure out a parenting scheme as well. Each block has to have a parent that is a touching block. The cuboid part is not that bad, at least in my mind it is not. The hard part is a method for proper parenting.
AlgoRythm4692626dDo the volumes NEED to be rectangular, or cubic, or can they be any freeform shape?
2D algo is very easy in most of those cases. 3D is the same thing with an additional axis.
AlgoRythm4692626dRectangular and cubic is difficult. Requires packing them together based on finding the largest possible cube or rectangle. Polygon is easy, just do a paint fill algo to select similar colored voxels and combine them