Cleanup for public consumption.

This commit is contained in:
John Poole 2026-03-06 13:11:39 -08:00
commit 876ca92f07
2 changed files with 2 additions and 20 deletions

View file

@ -7,7 +7,7 @@
// openscad colorpie.scad
//
// STL export:
// openscad -o colorpie_20260306_0834.stl colorpie.scad
// openscad -o output.stl wedge.scad
//
$fn = 90;
@ -252,4 +252,4 @@ module wheel_10() {
// Top level
// ------------------------------------------------------------
wheel_10();
wheel_10();

View file

@ -410,26 +410,8 @@ def main():
else:
parts = imported
# if len(parts) != 10:
# log(f"Found {len(parts)} mesh parts after separation:")
# for j, obj in enumerate(sort_parts_by_angle(parts)):
# c = world_bbox_center(obj)
# dims = obj.dimensions
# log(
# f" part {j:02d}: "
# f"name={obj.name!r} "
# f"angle={angle_deg_for_obj(obj):7.3f} "
# f"center=({c.x:8.3f},{c.y:8.3f},{c.z:8.3f}) "
# f"dims=({dims.x:8.3f},{dims.y:8.3f},{dims.z:8.3f})"
# )
# die(f"Expected 10 wedge parts after separation; found {len(parts)}")
# parts = sort_parts_by_angle(parts)
# the following line replaces all of the above rem'd
slot_pairs = pick_slot_pairs(parts, expected_groups=10, tolerance_deg=10.0)
text_mat = ensure_text_material()
export_objs = []
for i, slot in enumerate(slot_pairs):