Hey folks,
So I've got a reasonably interesting problem to solve and just wanted to reach out and see if I'm on the right track for a solution.
Given a piece of geometry - typically the exterior of a building - I need to be able to generate a shape that represents it's interior volume.
My geometric algorithm knowledge is a little lacking, but an approach I'm considering is:
- stitch a plane on to the 'floor' of the building geometry (to catch ray casts)
- work out where the center of the building is
- perform a bunch of raycasts from the center point to hit all of the interior bounds
- stitch the resulting racast intersection vertices together (removing unnecessary ones) in to the desired volume
Is this a reasonable approach to the problem? I should probably note that I'm likely going to have to handle both convex and concave pieces of geometry.
Any suggestions would be greatly appreciated, thanks!