1. A method comprising: generating by a computing device, a medial axis of a three dimensional (3D) shape; applying, by the computing device, a mathematical transform to the medial axis to identify one or more components of the 3D shape that need to be preserved; and creating an output model based at least in part on the one or more components and an insetted shape corresponding to the 3D shape.