Loop blends: accept straight wall seams that are not lines (#335)
* Loop blends accept straight wall seams that are not lines Filleting or chamfering the top outline of two overlapping cylinders whose concave edges were rounded failed with "the wall seams must be straight": the round's contact lines with the cylinders are straight NURBS curves, and the loop blend only accepted seams stored as lines. A seam now counts as straight when every sample lies on its chord; it is trimmed as a line as before. * Fillet and chamfer arrows point into the body The radius arrow pointed out of the body along the edge's bisector, so dragging it away from the edge grew the round. It now points into the material, like the shell's thickness arrow: dragging toward the body grows the radius or distance, dragging out of it shrinks it.
This commit is contained in:
1 parent
e6252ae094
commit
fc8a5b21cf
4 files changed
+71
-6
No files matched your search
@@ -470,6 +470,19 @@ fn a_hole_is_mirrored_as_a_feature() {
|
||||
assert_eq!(cmds[0].1["features"], json!(["Hole1"]));
|
||||
}
|
||||
|
||||
/// The radius arrow points into the body: dragging toward the material grows the round.
|
||||
#[test]
|
||||
fn fillet_and_chamfer_arrows_point_into_the_body() {
|
||||
for id in ["solid.fillet", "solid.chamfer"] {
|
||||
let mut app = boxed();
|
||||
let e = edge(&app, Vec3::new(20.0, 0.0, 20.0));
|
||||
let d = start(&mut app, vec![e], id);
|
||||
let (_, dir) = crate::canvas::anchor(&app, &d).unwrap();
|
||||
let dir = dir.unwrap();
|
||||
assert!(dir.y > 0.5 && dir.z < -0.5, "{id}: {dir:?}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn chamfer_types_send_their_values() {
|
||||
let mut app = boxed();
|
||||
|
||||
Reference in new issue
Block a user