From 4f6f254d048ce3abecc3dba72e95091ded8dbd89 Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Tue, 27 Oct 2026 12:13:17 -0400 Subject: [PATCH] smlib: a setback left open is a profiler span like every other SMLib call Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LUXeKMoxpM7Vuv8Rb6E3K2 --- crates/smlib/src/ops_tests.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/smlib/src/ops_tests.rs b/crates/smlib/src/ops_tests.rs index c98d4c50cf..8e75bf6c48 100644 --- a/crates/smlib/src/ops_tests.rs +++ b/crates/smlib/src/ops_tests.rs @@ -389,7 +389,12 @@ fn draft_tilts_a_side_about_its_line_on_the_neutral_plane() { fn a_setback_corner_left_open_returns_its_hole() { let b = Brep::make_box([0.0; 3], [60.0, 40.0, 20.0]).unwrap(); let edges = [[30.0, 40.0, 20.0], [60.0, 20.0, 20.0], [60.0, 40.0, 10.0]]; + solidcraft_profile::set_enabled(true); + let mark = solidcraft_profile::mark(); let (open, holes) = b.blend_setback_open(Blend::Round, &edges, &[5.0; 3], &[[60.0, 40.0, 20.0]], &[8.0], 0.1).unwrap(); + // The call is a profiler span like every other, timed by the C API. + let report = mark.report(); + assert!(report.rows.iter().any(|r| r.category == "smlib" && r.name == "smlib_blend_setback_open"), "{report:?}"); shot(&open, "setback_open"); assert_eq!(open.counts().unwrap(), [9, 30, 22]); assert!(!open.is_manifold_solid().unwrap());