Wave 327/509: STEP import: FILE_DESCRIPTION and the preprocessor name a Y-up exporter again (and 3 more)
4 commits, squashed; the originals stay reachable from tag archive/merge-main-develop. - f8c2fba07 jyviko: STEP import: FILE_DESCRIPTION and the preprocessor name a Y-up exporter again - 5cc0d5e9c jyviko: Threads: a metric size without a coarse pitch suggests its fine pitches again - e0545b2bd jyviko: Measure: an arc edge's angle is its span on the circle, not its NURBS parameter - ae5dc2416 jyviko: Split Body: a face tool runs over its own surface's parameters Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
@@ -154,8 +154,9 @@ fn face_patch(body: &Body, face: usize) -> Result<Patch> {
|
||||
let record = body.record();
|
||||
let f = record.faces.get(face).ok_or_else(|| invalid(format!("the tool body has no face {face}")))?;
|
||||
let forward = body.face_forward(face);
|
||||
// The surface's own parameter box, unbounded where it is.
|
||||
let dom = SurfaceEval::new(f.parameters()).map_err(|e| invalid(format!("the split tool's surface: {e}")))?.domain();
|
||||
// The surface's own parameter box, unbounded where it is: of `surface` itself, not of its
|
||||
// NURBS form (SMLib's cylinder is held on one, parameterised otherwise).
|
||||
let dom = SurfaceEval::new(&f.surface).map_err(|e| invalid(format!("the split tool's surface: {e}")))?.domain();
|
||||
let range = |k: usize| dom.range[k].map_or(ALL, |(a, b)| [a, b]);
|
||||
Ok(Patch { surface: f.surface.clone(), domain: [range(0), range(1)], flip: !forward })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user