doc, engine: the unused revolve targets and the formatting of the exact tools

The revolve no longer reads its targets (its profiles are not grown round them); fuzz.rs and
the plastic tools formatted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017itGh5fpMEousnZ91cYcVt
This commit is contained in:
jyviko
2026-10-22 07:48:54 -04:00
parent af4e97b648
commit f7daf61249
3 changed files with 4 additions and 13 deletions
+1 -1
View File
@@ -4734,7 +4734,7 @@ fn feature_tools_with_constructor(
}
})
.collect::<Result<Vec<_>>>()?;
let (operation, targets) = feature_op(f);
let (operation, _) = feature_op(f);
let axis_w = ss.plane.dir_to_world(d);
let origin_w = ss.plane.to_world(o);
// To a curved face: turn past the whole target body, then cut back to its surface
+2 -5
View File
@@ -1946,11 +1946,8 @@ pub(super) fn plastic_eval(doc: &Document, vals: &BTreeMap<String, Value>, f: &F
// The post: a (tapered) cylinder standing on the face.
let base = Plane::new(position.0, x, z.cross(x)).ok_or_else(|| DocError::Invalid("boss frame".into()))?;
let disc = Region2 { outer: Loop2::circle(Vec2::ZERO, r0), holes: Vec::new() };
let post = if dr.abs() > 1e-12 {
vec![kernel::extrude_tapered(&base, &disc, h, 1.0, -dr)?]
} else {
kernel::extrude(&base, &[disc], 0.0, h)?
};
let post =
if dr.abs() > 1e-12 { vec![kernel::extrude_tapered(&base, &disc, h, 1.0, -dr)?] } else { kernel::extrude(&base, &[disc], 0.0, h)? };
let mut tools: Vec<Traced> = post.into_iter().map(|b| crate::lineage::part_tool(b, "post")).collect();
if let Some(n) = ribs {
let n = val(vals, n, Kind::Unitless)?.round();
+1 -7
View File
@@ -331,13 +331,7 @@ pub fn golden(seed: u64, max_steps: usize) -> Value {
fn run_session(seed: u64, max_steps: usize, on_step: &mut dyn FnMut(&Step)) -> (Run, Session) {
let mut r = Rng::new(seed);
let mut s = Session::default();
let mut run = Run {
seed,
steps: Vec::new(),
outcome: Outcome::ok(),
unsupported: Vec::new(),
rejected: 0,
};
let mut run = Run { seed, steps: Vec::new(), outcome: Outcome::ok(), unsupported: Vec::new(), rejected: 0 };
let mut last_feature: Option<String> = None;
let n = 2 + r.below(max_steps.max(2) - 1);
let mut tries = 0;