added cylinder selection

This commit is contained in:
bakedpotatolord 2025-07-04 17:41:22 -06:00
commit f3174b681d
4 changed files with 165 additions and 49 deletions

View file

@ -568,6 +568,16 @@ CAM.cylinders = async (settings, widget, opts) => {
return Array.from(cylinderTriangles.values())
}
CAM.surface_find = function(widget, faces, radians) {
CAM.surface_prep(widget);
return widget.tool.findConnectedSurface(faces, radians || 0, 0.0);
};
CAM.cylinder_find = (widget, face)=>{
CAM.surface_prep(widget);
return widget.tool.findCylinderSurface(face);
}
/**
* Generate a list of holes in the model based on the given diameter.
*