Here is a method to carve mesh surfaces with extrusions, gaps, holes, profiles based on their distance from curves or polygons.
Projecting curves or polygons on a primitive.
Measuring distance with xyzdist().
Distance rings done with polygon cutting.
Carving in various profiles with ramps.
profiles_2.hipnc