Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions changelog.d/fixed/shared-edge-corner-anchor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- **A curved face whose edge ends at a plane's corner a few hundredths of a
millimetre off the plane's own saved point no longer leaves its element a
record box.** `refined_plane_edge` anchored an end sample to the plane's
saved sample only where the sample left the plane; one that lies on the
plane but off the saved corner (by up to `PLANE_ANCHOR_LIMIT`) is now
anchored the same way, so the ring keeps the plane's point that its other
edges meet. Families of cylinders cut by planes (round piles and columns
with flat ends) were refused as `shared edge surface samples disagree`
where the two corners parted by 1e-6 to 1e-4 ft.
8 changes: 7 additions & 1 deletion src/research/native_saved_mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,13 @@ fn refined_plane_edge(
if kind == "SurfRev" && shared_plane_anchor_enabled() {
return Ok((shared_endpoint == Some(i)).then_some(original[i]));
}
if project(samples[i]).is_ok() {
// An end sample that lies on the plane where the plane's own saved sample
// is needs no anchor. One that lies on the plane but off that sample by
// less than the limit (a plane's corner rounded differently from the
// curved face's, measured up to 4.8e-5 ft) is anchored as one that leaves
// the plane is: the ring keeps the plane's own point, which its other
// edges meet.
if project(samples[i]).is_ok_and(|p| close(p, original[i])) {
return Ok(None);
}
let q = evaluate(samples[i])?;
Expand Down