SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.
A cut ending in a face of its target no longer leaves the hole closed by a skin (#2827)
Erlis Vidal9e15995a74ff
diff --git a/crates/engine/src/boolean_regression_tests.rs b/crates/engine/src/boolean_regression_tests.rsindex 59a28da749..1cacb72b6a 100644--- a/crates/engine/src/boolean_regression_tests.rs+++ b/crates/engine/src/boolean_regression_tests.rs@@ -997,3 +997,38 @@ fn prism_edge_in_a_round_cornered_slab_end_face_joins() {assert!((got - (prism + slab - shared)).abs() < 1e-3 * got, "r {r}: {got} vs {}", prism + slab - shared);}}++/// A cut from a face up to the plate's top face, its tool's end lying in that face: the boolean+/// of the bodies as they lie left the hole closed by a skin of no thickness (the plate's top face+/// whole over the hole, the tool's end face under it), which no volume shows and which was kept.+/// The hole is open, and the cut takes the whole tool: the circle of radius 3.04 the two+/// profiles make, from the barrel cut's floor at z 1.6 up to the plate's top at z 2.8.+#[test]+fn cut_up_to_the_plate_top_face_opens_the_hole() {+ let mut script: Value = serde_json::from_str(include_str!("../../../examples/regressions/cut_up_to_face_leaves_skin.json")).unwrap();+ let s = replay_value(&script);+ assert!(s.model.results.iter().all(|r| r.error.is_none()), "{:?}", s.model.results);+ let state = s.model.state();+ let body = &state.body("Body7").unwrap().body;+ assert!(body.validity().is_empty(), "{:?}", body.validity());+ let skin: Vec<f64> = body+ .faces(1e-4)+ .unwrap()+ .into_iter()+ .filter(|f| f.plane_normal.is_some_and(|n| n.z < -0.999) && (f.centroid.z - 2.8).abs() < 1e-6)+ .map(|f| f.area)+ .collect();+ assert!(skin.is_empty(), "faces at z 2.8 facing down, areas {skin:?} mm²");+ // The same design without the cut.+ script["commands"].as_array_mut().unwrap().pop();+ let before = replay_value(&script);+ let fine = |s: &Session| s.model.state().body("Body7").unwrap().body.tessellate(1e-5).unwrap().measure().volume;+ let (removed, want) = (fine(&before) - fine(&s), std::f64::consts::PI * 3.04 * 3.04 * 1.2);+ assert!((removed - want).abs() < 0.01, "removed {removed} mm³, want {want}");+}++fn replay_value(script: &Value) -> Session {+ let mut s = Session::default();+ s.run_script(script).unwrap();+ s+}diff --git a/crates/kernel/src/coplanar.rs b/crates/kernel/src/coplanar.rsindex 201d3bb1a1..9f40592106 100644--- a/crates/kernel/src/coplanar.rs+++ b/crates/kernel/src/coplanar.rs@@ -999,6 +999,44 @@ pub(crate) fn faces_touch(a: &Body, b: &Body) -> bool {})}+/// Does `r` hold a skin of no thickness: a planar face lying on another of its planar faces that+/// faces the other way, with no material behind part of it? A cut whose tool ends exactly on a+/// face of the target can come out with the target's face whole over the hole and the tool's end+/// face under it, closing the hole. No volume shows that, and points sampled off the surface see+/// the hole either way. Faces back to back in one plane with material behind both (the top of a+/// step beside the underside of an overhang) are not this. `mesh` is `r`'s mesh; what counts is+/// an area of the faces with nothing behind it, so that the few triangles along an edge where the+/// mesh of a curved neighbour cuts the corner don't.+pub(crate) fn has_skin(r: &Body, mesh: &solidcraft_geom::Mesh) -> bool {+ let size = r.size();+ let tol = (size * 1e-7).max(1e-9) * 10.0;+ let p = planes(r);+ if p.len() > MAX_SKIN_FACES {+ return false;+ }+ let paired: HashMap<usize, Vec3> = p+ .iter()+ .filter(|(i, x)| p.iter().any(|(j, y)| i != j && x.n.dot(y.n) < -1.0 + 1e-9 && (x.d + y.d).abs() < tol))+ .map(|(i, x)| (*i, x.n))+ .collect();+ if paired.is_empty() {+ return false;+ }+ let inside = mesh.inside_index();+ let depth = (size * 1e-4).max(1e-6);+ let mut open = 0.0;+ for (t, face) in mesh.triangles.iter().zip(&mesh.tri_face).take(100_000) {+ let (Some(n), Some([a, b, c])) = (paired.get(&(*face as usize)), mesh.tri(t)) else { continue };+ if !inside.contains((a + b + c) / 3.0 - *n * depth) {+ open += (b - a).cross(c - a).len() * 0.5;+ }+ }+ open > (size * size * 1e-6).max(1e-9)+}++/// The most planar faces [`has_skin`] pairs up (every pair is compared).+const MAX_SKIN_FACES: usize = 2000;+/// The triangles of `tool`'s faces in the plane (`m`, `d`), `m` their outward normal, each with/// how far its face reaches past it sideways. A face bounded by straight edges is its/// triangles; they are drawn in by `skin`, so that faces of the other body lying against thediff --git a/crates/kernel/src/ops.rs b/crates/kernel/src/ops.rsindex 8d95b7904f..9309b6336f 100644--- a/crates/kernel/src/ops.rs+++ b/crates/kernel/src/ops.rs@@ -1295,7 +1295,8 @@ where// nothing to cut, so it returns both operands side by side (#396). Volume and point// sampling cannot see that; the shell grouping can. Only contact over an area counts// (bodies tangent along a line stay two lumps), and operands already like that, saved- // before this was caught, stay joinable.+ // before this was caught, stay joinable. Nor can they see a skin of no thickness left over+ // a hole by a tool ending in a face of the target ([`crate::coplanar::has_skin`]).let unfused = |r: &Body| {op == BoolOp::Union&& r.shell_count() > 1@@ -1311,7 +1312,7 @@ whereif !bounds {return (false, v);}- if unfused(r) {+ if unfused(r) || crate::coplanar::has_skin(r, &mr) {return (false, v);}let consistent = match &meshes {diff --git a/examples/regressions/cut_up_to_face_leaves_skin.json b/examples/regressions/cut_up_to_face_leaves_skin.jsonnew file mode 100644index 0000000000..90957bbbd0--- /dev/null+++ b/examples/regressions/cut_up_to_face_leaves_skin.json@@ -0,0 +1,2936 @@+{+ "description": "A housing: a 2.8 mm plate (z 0..2.8) with walls to z 15, a centre column, a barrel cut 1.6 mm deep from the bottom, a lid recess and two tapered pockets. Extrude1 then cuts two circle profiles of `housing pellet exit` from the barrel cut's floor (the face at z 1.6) up to the plate's top face (z 2.8). It reports no error, but the hole stays closed: the top face at z 2.8 keeps its area over the hole, and a 28.28 mm2 face at z 2.8 faces down under it, a zero-thickness skin. The sketches are added as a design stores them: solved again, their points move by up to 1e-6 mm and the same cut opens the hole, so the stored positions are part of the case. Result: no face at z 2.8 faces down.",+ "commands": [+ {+ "command": "parameters.add",+ "params": {+ "name": "total_height",+ "expression": "15 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "housing_bottom_thickness",+ "expression": "2.8 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "caliber_deltha",+ "expression": "0.55 mm - 0.07 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "housing_barrel_cut_depth",+ "expression": "1.6 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "housing_barrel_cut_length",+ "expression": "17 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "follower_wall_thickness",+ "expression": "3.1 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "housing_barrel_cut_width",+ "expression": "9.7 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "housing_center_diameter",+ "expression": "11.423 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "follower_spring_diameter",+ "expression": "26 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "lid_diameter",+ "expression": "20 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "hole_diameter",+ "expression": "3.38 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "housing_nut_depth",+ "expression": "7.5 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "print_extrusion_width",+ "expression": "0.45 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "print_layer_multiplier",+ "expression": "( 0.15 * ( 1 - 3.141592653 / 4 ) ) * 1 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "housing_spring_guide_from_top",+ "expression": "1.7 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "housing_barrel_cut_edge_separation",+ "expression": "6 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "follower_diameter",+ "expression": "49 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "screw_diameter",+ "expression": "3.380 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "pellet_max_height",+ "expression": "10 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "caliber22_shots",+ "expression": "17 + 1",+ "unit": ""+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "caliber25_shots",+ "expression": "15 + 1",+ "unit": ""+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "caliber30_shots",+ "expression": "13 + 1",+ "unit": ""+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "caliber177_shots",+ "expression": "21 + 1",+ "unit": ""+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "magnet_depth",+ "expression": "3.5 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "pelletpath_depth",+ "expression": "0.6 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "housing_step_size",+ "expression": "2 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "lid_height_panthera",+ "expression": "4.4 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "caliber357_shots",+ "expression": "11 + 1",+ "unit": ""+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "follower_label_depth",+ "expression": "0.36 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "caliber25",+ "expression": "6.35 mm + caliber_deltha + 0.07 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "caliber30",+ "expression": "7.62 mm + caliber_deltha",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "three_lines",+ "expression": "3 * print_extrusion_width - 2 * print_layer_multiplier",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "two_lines",+ "expression": "2 * print_extrusion_width - 1 * print_layer_multiplier",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "follower_height",+ "expression": "total_height - housing_bottom_thickness - 1 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "four_lines",+ "expression": "4 * print_extrusion_width - 3 * print_layer_multiplier",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "follower_hole_diameter",+ "expression": "housing_center_diameter + 0.4 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "lid_height",+ "expression": "total_height - pellet_max_height - housing_bottom_thickness",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "caliber22",+ "expression": "5.6 mm + caliber_deltha",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "housing_center_height",+ "expression": "total_height - 4 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "caliber177",+ "expression": "4.5 mm + caliber_deltha",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "six_lines",+ "expression": "6 * print_extrusion_width - 5 * print_layer_multiplier",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "caliberX_shots",+ "expression": "caliber22_shots",+ "unit": ""+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "caliber357",+ "expression": "9.07 mm + caliber_deltha",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "housing_wall_thickness",+ "expression": "four_lines",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "two_and_half_lines",+ "expression": "two_lines + ( 0.45 / 2 ) * 1 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "follower_lid_depth",+ "expression": "follower_height - lid_height - 1 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "housing_lid_recess",+ "expression": "lid_height + 0.3 mm",+ "unit": "mm"+ }+ },+ {+ "command": "parameters.add",+ "params": {+ "name": "caliberX",+ "expression": "caliber22",+ "unit": "mm"+ }+ },+ {+ "command": "timeline.add",+ "params": {+ "feature": {+ "id": 30,+ "name": "housing",+ "plane": {+ "name": "XY",+ "type": "origin"+ },+ "sketch": {+ "constraints": [+ {+ "id": "k1",+ "output": "c8",+ "param": "d1",+ "reverse": true,+ "type": "offset_distance",+ "value": 1.2856194489750001+ },+ {+ "id": "k2",+ "output": "c9",+ "param": "d2",+ "reverse": false,+ "type": "offset_distance",+ "value": 0.8678097244875+ },+ {+ "a": 27,+ "b": 28,+ "id": "k3",+ "type": "equal"+ },+ {+ "a": 28,+ "b": 29,+ "id": "k4",+ "type": "equal"+ },+ {+ "a": 29,+ "b": 30,+ "id": "k5",+ "type": "equal"+ },+ {+ "a": 30,+ "b": 31,+ "id": "k6",+ "type": "equal"+ },+ {+ "a": 31,+ "b": 32,+ "id": "k7",+ "type": "equal"+ },+ {+ "c": 44,+ "id": "k8",+ "p": 49,+ "type": "point_on_curve"+ },+ {+ "c": 44,+ "id": "k9",+ "p": 50,+ "type": "point_on_curve"+ },+ {+ "c": 44,+ "id": "k10",+ "p": 51,+ "type": "point_on_curve"+ },+ {+ "c": 44,+ "id": "k11",+ "p": 52,+ "type": "point_on_curve"+ },+ {+ "c": 44,+ "id": "k12",+ "p": 53,+ "type": "point_on_curve"+ },+ {+ "c": 44,+ "id": "k13",+ "p": 54,+ "type": "point_on_curve"+ },+ {+ "a": 34,+ "b": 35,+ "id": "k14",+ "type": "equal"+ },+ {+ "a": 35,+ "b": 36,+ "id": "k15",+ "type": "equal"+ },+ {+ "a": 36,+ "b": 37,+ "id": "k16",+ "type": "equal"+ },+ {+ "a": 37,+ "b": 38,+ "id": "k17",+ "type": "equal"+ },+ {+ "a": 38,+ "b": 39,+ "id": "k18",+ "type": "equal"+ },+ {+ "c": 45,+ "id": "k19",+ "p": 57,+ "type": "point_on_curve"+ },+ {+ "c": 45,+ "id": "k20",+ "p": 58,+ "type": "point_on_curve"+ },+ {+ "c": 45,+ "id": "k21",+ "p": 59,+ "type": "point_on_curve"+ },+ {+ "c": 45,+ "id": "k22",+ "p": 60,+ "type": "point_on_curve"+ },+ {+ "c": 45,+ "id": "k23",+ "p": 61,+ "type": "point_on_curve"+ },+ {+ "c": 45,+ "id": "k24",+ "p": 62,+ "type": "point_on_curve"+ },+ {+ "id": "k25",+ "p": 1,+ "q": 0,+ "type": "coincident"+ },+ {+ "a": 3,+ "b": 0,+ "id": "k26",+ "type": "concentric"+ },+ {+ "a": 4,+ "b": 3,+ "id": "k27",+ "type": "concentric"+ },+ {+ "a": 5,+ "b": 4,+ "id": "k28",+ "type": "concentric"+ },+ {+ "a": 13,+ "b": 0,+ "id": "k29",+ "type": "concentric"+ },+ {+ "c": 3,+ "id": "k30",+ "p": 9,+ "type": "point_on_curve"+ },+ {+ "a": 0,+ "b": 6,+ "id": "k31",+ "type": "tangent"+ },+ {+ "c": 2,+ "id": "k32",+ "p": 9,+ "type": "point_on_curve"+ },+ {+ "a": 7,+ "b": 8,+ "id": "k33",+ "type": "parallel"+ },+ {+ "c": 9,+ "id": "k34",+ "p": 10,+ "type": "point_on_curve"+ },+ {+ "a": 8,+ "b": 11,+ "id": "k35",+ "type": "tangent"+ },+ {+ "a": 7,+ "b": 11,+ "id": "k36",+ "type": "tangent"+ },+ {+ "c": 11,+ "id": "k37",+ "p": 13,+ "type": "point_on_curve"+ },+ {+ "c": 11,+ "id": "k38",+ "p": 11,+ "type": "point_on_curve"+ },+ {+ "a": 11,+ "b": 6,+ "id": "k39",+ "type": "concentric"+ },+ {+ "a": 10,+ "b": 12,+ "id": "k40",+ "type": "tangent"+ },+ {+ "a": 9,+ "b": 12,+ "id": "k41",+ "type": "tangent"+ },+ {+ "a": 10,+ "b": 13,+ "id": "k42",+ "type": "tangent"+ },+ {+ "c": 12,+ "id": "k43",+ "p": 69,+ "type": "point_on_curve"+ },+ {+ "id": "k44",+ "l": 46,+ "p": 14,+ "q": 16,+ "type": "symmetric"+ },+ {+ "a": 9,+ "b": 13,+ "id": "k45",+ "type": "tangent"+ },+ {+ "c": 9,+ "id": "k46",+ "p": 12,+ "type": "point_on_curve"+ },+ {+ "id": "k47",+ "l": 14,+ "type": "horizontal"+ },+ {+ "a": 14,+ "b": 11,+ "id": "k48",+ "type": "tangent"+ },+ {+ "a": 15,+ "b": 8,+ "id": "k49",+ "type": "parallel"+ },+ {+ "c": 15,+ "id": "k50",+ "p": 5,+ "type": "point_on_curve"+ },+ {+ "c": 8,+ "id": "k51",+ "p": 25,+ "type": "point_on_curve"+ },+ {+ "c": 8,+ "id": "k52",+ "p": 27,+ "type": "point_on_curve"+ },+ {+ "c": 8,+ "id": "k53",+ "p": 26,+ "type": "point_on_curve"+ },+ {+ "a": 16,+ "b": 11,+ "id": "k54",+ "type": "tangent"+ },+ {+ "id": "k55",+ "l": 15,+ "p": 27,+ "q": 29,+ "type": "symmetric"+ },+ {+ "id": "k56",+ "l": 15,+ "p": 26,+ "q": 30,+ "type": "symmetric"+ },+ {+ "id": "k57",+ "l": 15,+ "p": 25,+ "q": 28,+ "type": "symmetric"+ },+ {+ "a": 16,+ "b": 17,+ "id": "k58",+ "type": "equal"+ },+ {+ "a": 21,+ "b": 18,+ "id": "k59",+ "type": "tangent"+ },+ {+ "c": 18,+ "id": "k60",+ "p": 38,+ "type": "point_on_curve"+ },+ {+ "a": 22,+ "b": 20,+ "id": "k61",+ "type": "tangent"+ },+ {+ "c": 20,+ "id": "k62",+ "p": 40,+ "type": "point_on_curve"+ },+ {+ "a": 14,+ "b": 24,+ "id": "k63",+ "type": "tangent"+ },+ {+ "a": 9,+ "b": 24,+ "id": "k64",+ "type": "tangent"+ },+ {+ "a": 10,+ "b": 23,+ "id": "k65",+ "type": "tangent"+ },+ {+ "a": 14,+ "b": 23,+ "id": "k66",+ "type": "tangent"+ },+ {+ "c": 10,+ "id": "k67",+ "p": 43,+ "type": "point_on_curve"+ },+ {+ "c": 14,+ "id": "k68",+ "p": 44,+ "type": "point_on_curve"+ },+ {+ "c": 14,+ "id": "k69",+ "p": 46,+ "type": "point_on_curve"+ },+ {+ "c": 9,+ "id": "k70",+ "p": 47,+ "type": "point_on_curve"+ },+ {+ "a": 26,+ "b": 4,+ "id": "k71",+ "type": "concentric"+ },+ {+ "id": "k72",+ "l": 31,+ "type": "horizontal"+ },+ {+ "id": "k73",+ "l": 33,+ "type": "vertical"+ },+ {+ "id": "k74",+ "p": 55,+ "q": 19,+ "type": "coincident"+ },+ {+ "c": 33,+ "id": "k75",+ "p": 67,+ "type": "point_on_curve"+ },+ {+ "c": 13,+ "id": "k76",+ "p": 41,+ "type": "point_on_curve"+ },+ {+ "a": 22,+ "b": 13,+ "id": "k77",+ "type": "tangent"+ },+ {+ "c": 13,+ "id": "k78",+ "p": 37,+ "type": "point_on_curve"+ },+ {+ "a": 21,+ "b": 13,+ "id": "k79",+ "type": "tangent"+ },+ {+ "a": 20,+ "b": 13,+ "id": "k80",+ "type": "tangent"+ },+ {+ "c": 13,+ "id": "k81",+ "p": 35,+ "type": "point_on_curve"+ },+ {+ "c": 13,+ "id": "k82",+ "p": 32,+ "type": "point_on_curve"+ },+ {+ "a": 18,+ "b": 13,+ "id": "k83",+ "type": "tangent"+ },+ {+ "a": 19,+ "b": 20,+ "id": "k84",+ "type": "tangent"+ },+ {+ "a": 19,+ "b": 18,+ "id": "k85",+ "type": "tangent"+ },+ {+ "a": 40,+ "b": 13,+ "id": "k86",+ "type": "tangent"+ },+ {+ "a": 35,+ "b": 40,+ "id": "k87",+ "type": "parallel"+ },+ {+ "c": 41,+ "id": "k88",+ "p": 68,+ "type": "point_on_curve"+ },+ {+ "c": 41,+ "id": "k89",+ "p": 33,+ "type": "point_on_curve"+ },+ {+ "a": 41,+ "b": 40,+ "id": "k90",+ "type": "perpendicular"+ },+ {+ "c": 4,+ "id": "k91",+ "param": "d3",+ "type": "diameter",+ "value": 11.423+ },+ {+ "c": 5,+ "id": "k92",+ "param": "d4",+ "type": "diameter",+ "value": 3.38+ },+ {+ "c": 3,+ "id": "k93",+ "param": "d5",+ "type": "diameter",+ "value": 40.0+ },+ {+ "c": 6,+ "id": "k94",+ "param": "d6",+ "type": "diameter",+ "value": 6.08+ },+ {+ "id": "k95",+ "l": 7,+ "p": 12,+ "param": "d7",+ "type": "point_line_distance",+ "value": 9.7+ },+ {+ "id": "k96",+ "l": 7,+ "p": 16,+ "param": "d8",+ "type": "point_line_distance",+ "value": 6.0+ },+ {+ "c": 12,+ "id": "k97",+ "param": "d9",+ "type": "radius",+ "value": 4.0+ },+ {+ "id": "k98",+ "p": 5,+ "param": "d10",+ "q": 69,+ "type": "distance_y",+ "value": 14.0+ },+ {+ "a": 9,+ "b": 10,+ "flip": true,+ "id": "k99",+ "param": "d11",+ "type": "angle",+ "value": 1.5707963267948966+ },+ {+ "c": 16,+ "id": "k100",+ "param": "d12",+ "type": "radius",+ "value": 0.4+ },+ {+ "c": 21,+ "id": "k101",+ "param": "d13",+ "type": "radius",+ "value": 2.0+ },+ {+ "c": 23,+ "id": "k102",+ "param": "d14",+ "type": "radius",+ "value": 2.266+ },+ {+ "c": 24,+ "id": "k103",+ "param": "d15",+ "type": "radius",+ "value": 2.266+ },+ {+ "id": "k104",+ "l": 32,+ "p": 67,+ "param": "d16",+ "type": "point_line_distance",+ "value": 2.89+ },+ {+ "id": "k105",+ "l": 31,+ "p": 21,+ "param": "d17",+ "type": "point_line_distance",+ "value": 1.0928097244875001+ },+ {+ "c": 22,+ "id": "k106",+ "param": "d18",+ "type": "radius",+ "value": 2.0+ },+ {+ "c": 19,+ "id": "k107",+ "param": "d19",+ "type": "radius",+ "value": 4.0+ },+ {+ "id": "k108",+ "l": 39,+ "p": 68,+ "param": "d20",+ "type": "point_line_distance",+ "value": 2.89+ },+ {+ "id": "k109",+ "l": 35,+ "p": 63,+ "param": "d21",+ "type": "point_line_distance",+ "value": 1.2856194489750001+ },+ {+ "a": 20,+ "b": 18,+ "id": "k110",+ "param": "d22",+ "type": "angle",+ "value": 1.53588974175501+ }+ ],+ "counters": {+ "a": 9,+ "c": 11,+ "k": 110+ },+ "curves": [+ {+ "c": 1,+ "construction": false,+ "id": "c1",+ "r": 23.039999999993093,+ "type": "circle"+ },+ {+ "a": 2,+ "b": 3,+ "construction": false,+ "fixed": true,+ "id": "f1",+ "type": "line"+ },+ {+ "a": 4,+ "b": 5,+ "construction": false,+ "fixed": true,+ "id": "f2",+ "type": "line"+ },+ {+ "c": 6,+ "construction": true,+ "id": "c2",+ "r": 20.0,+ "type": "circle"+ },+ {+ "c": 7,+ "construction": false,+ "id": "c3",+ "r": 5.7115,+ "type": "circle"+ },+ {+ "c": 8,+ "construction": false,+ "id": "c4",+ "r": 1.69,+ "type": "circle"+ },+ {+ "c": 9,+ "construction": false,+ "id": "c5",+ "r": 3.04,+ "type": "circle"+ },+ {+ "a": 10,+ "b": 11,+ "construction": false,+ "id": "f8",+ "type": "line"+ },+ {+ "a": 12,+ "b": 13,+ "construction": false,+ "id": "f9",+ "type": "line"+ },+ {+ "a": 14,+ "b": 15,+ "construction": false,+ "id": "f10",+ "type": "line"+ },+ {+ "a": 16,+ "b": 17,+ "construction": false,+ "id": "f11",+ "type": "line"+ },+ {+ "c": 18,+ "construction": false,+ "id": "c6",+ "r": 4.85000000031336,+ "type": "circle"+ },+ {+ "a": 14,+ "b": 16,+ "c": 19,+ "construction": false,+ "id": "a1",+ "type": "arc"+ },+ {+ "a": 17,+ "b": 15,+ "c": 20,+ "construction": false,+ "id": "a2",+ "type": "arc"+ },+ {+ "a": 21,+ "b": 22,+ "construction": true,+ "id": "f15",+ "type": "line"+ },+ {+ "a": 23,+ "b": 24,+ "construction": true,+ "id": "f16",+ "type": "line"+ },+ {+ "a": 26,+ "b": 27,+ "c": 25,+ "construction": false,+ "id": "a3",+ "type": "arc"+ },+ {+ "a": 29,+ "b": 30,+ "c": 28,+ "construction": false,+ "id": "a4",+ "type": "arc"+ },+ {+ "a": 31,+ "b": 32,+ "construction": false,+ "id": "f19",+ "type": "line"+ },+ {+ "a": 31,+ "b": 34,+ "c": 33,+ "construction": false,+ "id": "a5",+ "type": "arc"+ },+ {+ "a": 34,+ "b": 35,+ "construction": false,+ "fixed": true,+ "id": "f21",+ "type": "line"+ },+ {+ "a": 37,+ "b": 38,+ "c": 36,+ "construction": false,+ "id": "a6",+ "type": "arc"+ },+ {+ "a": 40,+ "b": 41,+ "c": 39,+ "construction": false,+ "id": "a7",+ "type": "arc"+ },+ {+ "a": 43,+ "b": 44,+ "c": 42,+ "construction": false,+ "id": "a8",+ "type": "arc"+ },+ {+ "a": 46,+ "b": 47,+ "c": 45,+ "construction": false,+ "id": "a9",+ "type": "arc"+ },+ {+ "a": 44,+ "b": 46,+ "construction": false,+ "id": "f26",+ "type": "line"+ },+ {+ "c": 48,+ "construction": false,+ "id": "c7",+ "r": 4.769278,+ "type": "circle"+ },+ {+ "a": 49,+ "b": 50,+ "construction": false,+ "id": "f29",+ "type": "line"+ },+ {+ "a": 50,+ "b": 51,+ "construction": false,+ "id": "f30",+ "type": "line"+ },+ {+ "a": 51,+ "b": 52,+ "construction": false,+ "id": "f31",+ "type": "line"+ },+ {+ "a": 52,+ "b": 53,+ "construction": false,+ "id": "f32",+ "type": "line"+ },+ {+ "a": 53,+ "b": 54,+ "construction": false,+ "id": "f33",+ "type": "line"+ },+ {+ "a": 54,+ "b": 49,+ "construction": false,+ "id": "f34",+ "type": "line"+ },+ {+ "a": 55,+ "b": 56,+ "construction": true,+ "id": "f35",+ "type": "line"+ },+ {+ "a": 57,+ "b": 58,+ "construction": false,+ "id": "f36",+ "type": "line"+ },+ {+ "a": 58,+ "b": 59,+ "construction": false,+ "id": "f37",+ "type": "line"+ },+ {+ "a": 59,+ "b": 60,+ "construction": false,+ "id": "f38",+ "type": "line"+ },+ {+ "a": 60,+ "b": 61,+ "construction": false,+ "id": "f39",+ "type": "line"+ },+ {+ "a": 61,+ "b": 62,+ "construction": false,+ "id": "f40",+ "type": "line"+ },+ {+ "a": 62,+ "b": 57,+ "construction": false,+ "id": "f41",+ "type": "line"+ },+ {+ "a": 63,+ "b": 64,+ "construction": true,+ "id": "f42",+ "type": "line"+ },+ {+ "a": 65,+ "b": 66,+ "construction": true,+ "id": "f43",+ "type": "line"+ },+ {+ "c": 8,+ "construction": false,+ "id": "c8",+ "r": 2.9756194489750003,+ "type": "circle"+ },+ {+ "c": 48,+ "construction": false,+ "id": "c9",+ "r": 3.9014682755125,+ "type": "circle"+ },+ {+ "c": 67,+ "construction": true,+ "id": "c10",+ "r": 3.3370845559221345,+ "type": "circle"+ },+ {+ "c": 68,+ "construction": true,+ "id": "c11",+ "r": 3.3370845559321887,+ "type": "circle"+ },+ {+ "a": 19,+ "b": 69,+ "construction": true,+ "id": "m13",+ "type": "line"+ }+ ],+ "offsets": [+ {+ "closed": true,+ "distance": -1.2856194489750001,+ "outputs": [+ "c8"+ ],+ "sources": [+ [+ "c4",+ true+ ]+ ]+ },+ {+ "closed": true,+ "distance": 0.8678097244875,+ "outputs": [+ "c9"+ ],+ "sources": [+ [+ "c7",+ true+ ]+ ]+ }+ ],+ "points": [+ {+ "fixed": true,+ "id": "origin",+ "pos": [+ 0.0,+ 0.0+ ]+ },+ {+ "fixed": false,+ "id": "c1.center",+ "pos": [+ 0.0,+ 0.0+ ]+ },+ {+ "fixed": false,+ "id": "f1.start",+ "pos": [+ 20.0,+ 0.0+ ]+ },+ {+ "fixed": false,+ "id": "f1.end",+ "pos": [+ 2.5,+ 0.0+ ]+ },+ {+ "fixed": false,+ "id": "f2.start",+ "pos": [+ 0.0,+ 2.5+ ]+ },+ {+ "fixed": false,+ "id": "f2.end",+ "pos": [+ 0.0,+ 20.0+ ]+ },+ {+ "fixed": false,+ "id": "c2.center",+ "pos": [+ 0.0,+ 0.0+ ]+ },+ {+ "fixed": false,+ "id": "c3.center",+ "pos": [+ 0.0,+ 0.0+ ]+ },+ {+ "fixed": false,+ "id": "c4.center",+ "pos": [+ 0.0,+ 0.0+ ]+ },+ {+ "fixed": false,+ "id": "c5.center",+ "pos": [+ 0.0,+ 20.0+ ]+ },+ {+ "fixed": false,+ "id": "f8.start",+ "pos": [+ 4.7440572709653415,+ 31.34676111743593+ ]+ },+ {+ "fixed": false,+ "id": "f8.end",+ "pos": [+ -3.3742393513795776,+ 23.48382100606391+ ]+ },+ {+ "fixed": false,+ "id": "f9.start",+ "pos": [+ 11.492535932480322,+ 24.37911906613869+ ]+ },+ {+ "fixed": false,+ "id": "f9.end",+ "pos": [+ 3.374239351627148,+ 16.51617899409599+ ]+ },+ {+ "fixed": false,+ "id": "f10.start",+ "pos": [+ 3.3526183880788305,+ 32.783388327578905+ ]+ },+ {+ "fixed": false,+ "id": "f10.end",+ "pos": [+ 18.113191685694147,+ 17.543451096209797+ ]+ },+ {+ "fixed": false,+ "id": "f11.start",+ "pos": [+ -2.303513864705641,+ 32.873764983207224+ ]+ },+ {+ "fixed": false,+ "id": "f11.end",+ "pos": [+ -17.543451096200045,+ 18.11319168577141+ ]+ },+ {+ "fixed": false,+ "id": "c6.center",+ "pos": [+ 0.0,+ 20.0+ ]+ },+ {+ "fixed": false,+ "id": "a1.center",+ "pos": [+ 0.4793639339100286,+ 30.00051052899045+ ]+ },+ {+ "fixed": false,+ "id": "a2.center",+ "pos": [+ 0.0,+ 0.0+ ]+ },+ {+ "fixed": false,+ "id": "f15.start",+ "pos": [+ 16.847551000017898,+ 24.850000000311898+ ]+ },+ {+ "fixed": false,+ "id": "f15.end",+ "pos": [+ -16.623546999998876,+ 24.85000000030438+ ]+ },+ {+ "fixed": false,+ "id": "f16.start",+ "pos": [+ 9.422256926787238,+ 29.12588507090988+ ]+ },+ {+ "fixed": false,+ "id": "f16.end",+ "pos": [+ -5.157321843942895,+ 15.004898848851603+ ]+ },+ {+ "fixed": false,+ "id": "a3.center",+ "pos": [+ 4.8180318380452976,+ 17.914557789966715+ ]+ },+ {+ "fixed": false,+ "id": "a3.start",+ "pos": [+ 5.105357281825366,+ 18.192845571526597+ ]+ },+ {+ "fixed": false,+ "id": "a3.end",+ "pos": [+ 4.530706394275853,+ 17.63627000839571+ ]+ },+ {+ "fixed": false,+ "id": "a4.center",+ "pos": [+ -1.9304468658272427,+ 24.88219980154129+ ]+ },+ {+ "fixed": false,+ "id": "a4.start",+ "pos": [+ -2.2177723095694275,+ 24.603912019942214+ ]+ },+ {+ "fixed": false,+ "id": "a4.end",+ "pos": [+ -1.643121422091574,+ 25.160487583147514+ ]+ },+ {+ "fixed": false,+ "id": "f19.start",+ "pos": [+ -18.22442760289246,+ -28.043102894816247+ ]+ },+ {+ "fixed": false,+ "id": "f19.end",+ "pos": [+ -24.249511090231813,+ -6.915316428320679+ ]+ },+ {+ "fixed": false,+ "id": "a5.center",+ "pos": [+ -14.377782739897706,+ -26.94614195750076+ ]+ },+ {+ "fixed": false,+ "id": "a5.end",+ "pos": [+ -13.14724407183456,+ -30.75216016376323+ ]+ },+ {+ "fixed": false,+ "id": "f21.end",+ "pos": [+ 7.757399536659945,+ -23.993397880386595+ ]+ },+ {+ "fixed": false,+ "id": "a6.center",+ "pos": [+ -18.431106633933677,+ -20.02547844408478+ ]+ },+ {+ "fixed": false,+ "id": "a6.start",+ "pos": [+ -17.076688481394942,+ -18.553897162683164+ ]+ },+ {+ "fixed": false,+ "id": "a6.end",+ "pos": [+ -20.354429065319973,+ -20.57395891270366+ ]+ },+ {+ "fixed": false,+ "id": "a7.center",+ "pos": [+ -6.3722554037222405,+ -26.459777771923452+ ]+ },+ {+ "fixed": false,+ "id": "a7.start",+ "pos": [+ -5.756986069698662,+ -28.362786875025243+ ]+ },+ {+ "fixed": false,+ "id": "a7.end",+ "pos": [+ -5.903987352160198,+ -24.515369113302228+ ]+ },+ {+ "fixed": false,+ "id": "a8.center",+ "pos": [+ -4.991207836430458,+ 27.116000000282124+ ]+ },+ {+ "fixed": false,+ "id": "a8.start",+ "pos": [+ -6.5677081093051095,+ 28.74369864854841+ ]+ },+ {+ "fixed": false,+ "id": "a8.end",+ "pos": [+ -4.991207836431011,+ 24.850000000301+ ]+ },+ {+ "fixed": false,+ "id": "a9.center",+ "pos": [+ 5.687131136239809,+ 27.116000000296875+ ]+ },+ {+ "fixed": false,+ "id": "a9.start",+ "pos": [+ 5.687131136241227,+ 24.85000000030553+ ]+ },+ {+ "fixed": false,+ "id": "a9.end",+ "pos": [+ 7.314829784503578,+ 28.692500273173373+ ]+ },+ {+ "fixed": false,+ "id": "c7.center",+ "pos": [+ 0.0,+ 0.0+ ]+ },+ {+ "fixed": false,+ "id": "f29.start",+ "pos": [+ 3.816448489842134,+ 28.832809725100045+ ]+ },+ {+ "fixed": false,+ "id": "f29.end",+ "pos": [+ 2.1479062119469194,+ 31.722809725139882+ ]+ },+ {+ "fixed": false,+ "id": "f30.end",+ "pos": [+ -1.1891783439734689,+ 31.72280972521438+ ]+ },+ {+ "fixed": false,+ "id": "f31.end",+ "pos": [+ -2.8577206219999844,+ 28.832809725246687+ ]+ },+ {+ "fixed": false,+ "id": "f32.end",+ "pos": [+ -1.1891783441055306,+ 25.942809725201045+ ]+ },+ {+ "fixed": false,+ "id": "f33.end",+ "pos": [+ 2.1479062118179804,+ 25.942809725129404+ ]+ },+ {+ "fixed": false,+ "id": "f35.start",+ "pos": [+ 0.4793639339148472,+ 30.00051052899103+ ]+ },+ {+ "fixed": false,+ "id": "f35.end",+ "pos": [+ 0.4793639339176719,+ 28.099835000004717+ ]+ },+ {+ "fixed": false,+ "id": "f36.start",+ "pos": [+ -10.884207425092901,+ -27.370019276197922+ ]+ },+ {+ "fixed": false,+ "id": "f36.end",+ "pos": [+ -11.15004687559625,+ -24.04354024875941+ ]+ },+ {+ "fixed": false,+ "id": "f37.end",+ "pos": [+ -14.1637819437734,+ -22.61052445251943+ ]+ },+ {+ "fixed": false,+ "id": "f38.end",+ "pos": [+ -16.911677561437795,+ -24.50398768371017+ ]+ },+ {+ "fixed": false,+ "id": "f39.end",+ "pos": [+ -16.645838110929827,+ -27.830466711150418+ ]+ },+ {+ "fixed": false,+ "id": "f40.end",+ "pos": [+ -13.632103042753231,+ -29.263482507393416+ ]+ },+ {+ "fixed": false,+ "id": "f42.start",+ "pos": [+ -20.122238683726938,+ -18.353752325108776+ ]+ },+ {+ "fixed": false,+ "id": "f42.end",+ "pos": [+ 7.132273151961092,+ -31.313134976753147+ ]+ },+ {+ "fixed": false,+ "id": "f43.start",+ "pos": [+ -17.758870146527276,+ -34.05681144040707+ ]+ },+ {+ "fixed": false,+ "id": "f43.end",+ "pos": [+ -12.402122358346736,+ -22.79118637850851+ ]+ },+ {+ "fixed": false,+ "id": "c10.center",+ "pos": [+ 0.47936393392077803,+ 28.832809725170332+ ]+ },+ {+ "fixed": false,+ "id": "c11.center",+ "pos": [+ -13.897942493266378,+ -25.937003479957074+ ]+ },+ {+ "fixed": false,+ "id": "q21",+ "pos": [+ 0.5432698799540695,+ 34.0000000001017+ ]+ }+ ]+ },+ "suppressed": false,+ "type": "sketch"+ },+ "params": [+ {+ "name": "d1",+ "expression": "three_lines",+ "unit": "mm"+ },+ {+ "name": "d10",+ "expression": "14 mm",+ "unit": "mm"+ },+ {+ "name": "d11",+ "expression": "90 deg",+ "unit": "deg"+ },+ {+ "name": "d12",+ "expression": "0.4 mm",+ "unit": "mm"+ },+ {+ "name": "d13",+ "expression": "2 mm",+ "unit": "mm"+ },+ {+ "name": "d14",+ "expression": "2.266 mm",+ "unit": "mm"+ },+ {+ "name": "d15",+ "expression": "2.266 mm",+ "unit": "mm"+ },+ {+ "name": "d16",+ "expression": "2.89 mm",+ "unit": "mm"+ },+ {+ "name": "d17",+ "expression": "two_and_half_lines",+ "unit": "mm"+ },+ {+ "name": "d18",+ "expression": "2 mm",+ "unit": "mm"+ },+ {+ "name": "d19",+ "expression": "4 mm",+ "unit": "mm"+ },+ {+ "name": "d2",+ "expression": "two_lines",+ "unit": "mm"+ },+ {+ "name": "d20",+ "expression": "2.89 mm",+ "unit": "mm"+ },+ {+ "name": "d21",+ "expression": "three_lines",+ "unit": "mm"+ },+ {+ "name": "d22",+ "expression": "88 deg",+ "unit": "deg"+ },+ {+ "name": "d3",+ "expression": "housing_center_diameter",+ "unit": "mm"+ },+ {+ "name": "d4",+ "expression": "screw_diameter",+ "unit": "mm"+ },+ {+ "name": "d5",+ "expression": "40 mm",+ "unit": "mm"+ },+ {+ "name": "d6",+ "expression": "caliberX",+ "unit": "mm"+ },+ {+ "name": "d7",+ "expression": "housing_barrel_cut_width",+ "unit": "mm"+ },+ {+ "name": "d8",+ "expression": "housing_barrel_cut_edge_separation",+ "unit": "mm"+ },+ {+ "name": "d9",+ "expression": "4 mm",+ "unit": "mm"+ }+ ]+ }+ },+ {+ "command": "timeline.add",+ "params": {+ "feature": {+ "body_names": [+ "Body7"+ ],+ "extent": {+ "convention": "total_distance",+ "direction": "positive",+ "distance": "housing_bottom_thickness"+ },+ "id": 34,+ "name": "base",+ "operation": "new_body",+ "param_names": [+ "d31"+ ],+ "profiles": {+ "indices": [+ 0,+ 1,+ 2,+ 3,+ 4,+ 5,+ 6,+ 7,+ 8,+ 9,+ 10,+ 11,+ 12,+ 14,+ 15,+ 16,+ 17,+ 18,+ 19,+ 20,+ 21,+ 22,+ 23,+ 24,+ 25,+ 26,+ 27,+ 28,+ 29+ ],+ "type": "indices"+ },+ "sketch": 30,+ "suppressed": false,+ "type": "extrude"+ }+ }+ },+ {+ "command": "timeline.add",+ "params": {+ "feature": {+ "extent": {+ "convention": "total_distance",+ "direction": "positive",+ "distance": "total_height"+ },+ "id": 35,+ "name": "housing walls",+ "operation": "join",+ "param_names": [+ "d32"+ ],+ "profiles": {+ "loops": [+ [+ "c1",+ "c6",+ "f8",+ "f8",+ "f26",+ "a8",+ "f11",+ "a2",+ "a2",+ "a2",+ "a2",+ "a2",+ "f10",+ "f9"+ ],+ [+ "c1",+ "f9",+ "f10",+ "a9",+ "f26",+ "c6"+ ],+ [+ "c1",+ "c6",+ "c6",+ "c6",+ "c6",+ "c1"+ ],+ [+ "f8",+ "f10",+ "a1",+ "f11",+ "a8",+ "f26",+ "f8",+ "f8",+ "f33",+ "f32",+ "f31",+ "f30",+ "f29"+ ],+ [+ "f8",+ "f29",+ "f34",+ "f33",+ "f8",+ "a4",+ "f26",+ "f26",+ "a9",+ "f10"+ ],+ [+ "f8",+ "f29",+ "f30",+ "f31",+ "f32",+ "f33"+ ],+ [+ "f8",+ "f33",+ "f34",+ "f29"+ ],+ [+ "f8",+ "a4",+ "a4",+ "f26"+ ],+ [+ "f8",+ "c6",+ "a4"+ ],+ [+ "f8",+ "f26",+ "a4"+ ],+ [+ "c6",+ "f26",+ "a4"+ ],+ [+ "a2",+ "a6",+ "f19",+ "a5",+ "f21",+ "a7"+ ],+ [+ "a2",+ "a7",+ "f21"+ ],+ [+ "a2",+ "f19",+ "a6"+ ],+ [+ "f36",+ "f37",+ "f38",+ "f39",+ "f40",+ "f41"+ ]+ ],+ "type": "curves"+ },+ "sketch": 30,+ "suppressed": false,+ "targets": [+ "Body7"+ ],+ "type": "extrude"+ }+ }+ },+ {+ "command": "timeline.add",+ "params": {+ "feature": {+ "extent": {+ "convention": "total_distance",+ "direction": "positive",+ "distance": "housing_center_height"+ },+ "id": 36,+ "name": "housing center",+ "operation": "join",+ "param_names": [+ "d33"+ ],+ "profiles": {+ "indices": [+ 7,+ 8,+ 9,+ 10,+ 11,+ 12,+ 13,+ 29+ ],+ "type": "indices"+ },+ "sketch": 30,+ "suppressed": false,+ "targets": [+ "Body7"+ ],+ "type": "extrude"+ }+ }+ },+ {+ "command": "timeline.add",+ "params": {+ "feature": {+ "extent": {+ "convention": "total_distance",+ "direction": "positive",+ "distance": "housing_barrel_cut_depth"+ },+ "id": 38,+ "name": "barrel cut",+ "operation": "cut",+ "param_names": [+ "d35"+ ],+ "profiles": {+ "loops": [+ [+ "c1",+ "f9",+ "f10",+ "a9",+ "f26",+ "c6"+ ],+ [+ "c1",+ "c6",+ "f2",+ "c5"+ ],+ [+ "c1",+ "c5",+ "f2",+ "c6",+ "c6",+ "c6"+ ],+ [+ "c1",+ "c6",+ "c6",+ "c6",+ "c6",+ "c1"+ ],+ [+ "c1",+ "c6",+ "a3",+ "f9"+ ],+ [+ "c5",+ "c5"+ ],+ [+ "f8",+ "f29",+ "f34",+ "f33",+ "f8",+ "a4",+ "f26",+ "f26",+ "a9",+ "f10"+ ],+ [+ "f8",+ "f33",+ "f34",+ "f29"+ ],+ [+ "f8",+ "a4",+ "a4",+ "f26"+ ],+ [+ "f8",+ "c6",+ "a4"+ ],+ [+ "f8",+ "f26",+ "a4"+ ],+ [+ "f9",+ "a3",+ "a3"+ ],+ [+ "f9",+ "a3",+ "c6"+ ],+ [+ "c6",+ "f26",+ "a4"+ ]+ ],+ "type": "curves"+ },+ "sketch": 30,+ "suppressed": false,+ "targets": [+ "Body7"+ ],+ "type": "extrude"+ }+ }+ },+ {+ "command": "timeline.add",+ "params": {+ "feature": {+ "extent": {+ "convention": "total_distance",+ "direction": "negative",+ "distance": "housing_lid_recess",+ "from": [+ -2.931496,+ 23.94939,+ 15.0+ ]+ },+ "face_names": [+ "F35:top"+ ],+ "id": 41,+ "name": "lid recess",+ "operation": "cut",+ "param_names": [+ "d39"+ ],+ "profiles": {+ "loops": [+ [+ "c1",+ "c6",+ "f8",+ "f8",+ "f26",+ "a8",+ "f11",+ "a2",+ "a2",+ "a2",+ "a2",+ "a2",+ "f10",+ "f9"+ ],+ [+ "c1",+ "f9",+ "f10",+ "a9",+ "f26",+ "c6"+ ],+ [+ "c1",+ "c6",+ "c6",+ "c6",+ "c6",+ "c1"+ ],+ [+ "f8",+ "f10",+ "a1",+ "f11",+ "a8",+ "f26",+ "f8",+ "f8",+ "f33",+ "f32",+ "f31",+ "f30",+ "f29"+ ],+ [+ "f8",+ "f29",+ "f34",+ "f33",+ "f8",+ "a4",+ "f26",+ "f26",+ "a9",+ "f10"+ ],+ [+ "f8",+ "f29",+ "f30",+ "f31",+ "f32",+ "f33"+ ],+ [+ "f8",+ "f33",+ "f34",+ "f29"+ ],+ [+ "f8",+ "a4",+ "a4",+ "f26"+ ],+ [+ "f8",+ "c6",+ "a4"+ ],+ [+ "f8",+ "f26",+ "a4"+ ],+ [+ "c6",+ "f26",+ "a4"+ ],+ [+ "a2",+ "a6",+ "f19",+ "a5",+ "f21",+ "a7"+ ],+ [+ "a2",+ "a7",+ "f21"+ ],+ [+ "a2",+ "f19",+ "a6"+ ],+ [+ "f36",+ "f37",+ "f38",+ "f39",+ "f40",+ "f41"+ ]+ ],+ "type": "curves"+ },+ "sketch": 30,+ "suppressed": false,+ "targets": [+ "Body7"+ ],+ "type": "extrude"+ }+ }+ },+ {+ "command": "timeline.add",+ "params": {+ "feature": {+ "extent": {+ "convention": "total_distance",+ "direction": "negative",+ "distance": "magnet_depth",+ "from": [+ -11.736601,+ -22.705797,+ 10.5+ ],+ "taper": "3 deg"+ },+ "face_names": [+ "F47:top#[F34:side:a5,F34:side:f19,F34:side:f21,F47:side:a2,F47:side:a6,F47:side:a7]"+ ],+ "id": 48,+ "name": "Extrude13",+ "operation": "cut",+ "param_names": [+ "d42",+ "d43"+ ],+ "profiles": {+ "loops": [+ [+ "f8",+ "f29",+ "f30",+ "f31",+ "f32",+ "f33"+ ],+ [+ "f8",+ "f33",+ "f34",+ "f29"+ ],+ [+ "f36",+ "f37",+ "f38",+ "f39",+ "f40",+ "f41"+ ]+ ],+ "type": "curves"+ },+ "sketch": 30,+ "suppressed": false,+ "targets": [+ "Body7"+ ],+ "type": "extrude"+ }+ }+ },+ {+ "command": "timeline.add",+ "params": {+ "feature": {+ "id": 57,+ "name": "housing pellet exit",+ "plane": {+ "name": "XY",+ "type": "origin"+ },+ "sketch": {+ "constraints": [+ {+ "c": 0,+ "id": "k1",+ "p": 3,+ "type": "point_on_curve"+ },+ {+ "a": 2,+ "b": 3,+ "id": "k2",+ "type": "equal"+ },+ {+ "c": 0,+ "id": "k3",+ "p": 5,+ "type": "point_on_curve"+ },+ {+ "a": 3,+ "b": 4,+ "id": "k4",+ "type": "equal"+ },+ {+ "a": 4,+ "b": 3,+ "id": "k5",+ "type": "tangent"+ },+ {+ "id": "k6",+ "p": 3,+ "param": "d55",+ "q": 4,+ "type": "distance_x",+ "value": 6.58+ }+ ],+ "counters": {+ "c": 5,+ "k": 6+ },+ "curves": [+ {+ "c": 1,+ "construction": false,+ "fixed": true,+ "id": "c1",+ "r": 20.0,+ "type": "circle"+ },+ {+ "c": 2,+ "construction": false,+ "fixed": true,+ "id": "c2",+ "r": 23.04,+ "type": "circle"+ },+ {+ "c": 3,+ "construction": false,+ "id": "c3",+ "r": 3.04,+ "type": "circle"+ },+ {+ "c": 4,+ "construction": false,+ "fixed": true,+ "id": "c4",+ "r": 3.04,+ "type": "circle"+ },+ {+ "c": 5,+ "construction": false,+ "id": "c5",+ "r": 3.04,+ "type": "circle"+ }+ ],+ "points": [+ {+ "fixed": true,+ "id": "origin",+ "pos": [+ 0.0,+ 0.0+ ]+ },+ {+ "fixed": false,+ "id": "c1.center",+ "pos": [+ 0.0,+ 0.0+ ]+ },+ {+ "fixed": false,+ "id": "c2.center",+ "pos": [+ 0.0,+ 0.0+ ]+ },+ {+ "fixed": false,+ "id": "c3.center",+ "pos": [+ 6.58,+ 18.88659842322063+ ]+ },+ {+ "fixed": false,+ "id": "c4.center",+ "pos": [+ 0.0,+ 20.0+ ]+ },+ {+ "fixed": false,+ "id": "c5.center",+ "pos": [+ -6.009353400691293,+ 19.07584+ ]+ }+ ]+ },+ "suppressed": false,+ "type": "sketch"+ },+ "params": [+ {+ "name": "d55",+ "expression": "caliberX + 0.5 mm",+ "unit": "mm"+ }+ ]+ }+ },+ {+ "command": "timeline.add",+ "params": {+ "feature": {+ "extent": {+ "convention": "total_distance",+ "direction": "positive",+ "distance": "0",+ "from": [+ 2.317238,+ 22.24435,+ 1.6+ ],+ "to": [+ 2.317238,+ 22.24435,+ 2.8+ ]+ },+ "face_names": [+ "F34:top",+ "F38:top"+ ],+ "id": 68,+ "name": "Extrude1",+ "operation": "cut",+ "param_names": [+ "d77"+ ],+ "profiles": {+ "indices": [+ 3,+ 6+ ],+ "type": "indices"+ },+ "sketch": 57,+ "suppressed": false,+ "targets": [+ "Body7"+ ],+ "type": "extrude"+ }+ }+ }+ ]+}