Holes on round faces from the app, and Flip for holes at sketch points (#980)
* Holes on round faces from the app, one hole per pick, and Flip for holes at sketch points (#967) The Hole dialog takes any face: a hole on a round face drills against the face's normal where it was picked, and its arrow shows that. A round face split at its seam is picked whole, but makes one hole where it was clicked. Holes at sketch points get Flip (saved as flip in the hole's points, under format 18), in the command and in the dialog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Holes at sketch points show their arrow: into the part, or away with Flip (#967) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
47a7f29485
commit
b34d45233d
11 files changed
+247
-10
No files matched your search
@@ -467,12 +467,12 @@ fn select_other_over_a_dense_cluster_off_the_face_tests_no_triangles() {
|
||||
#[test]
|
||||
fn select_other_over_a_dense_cluster_by_a_curved_face_looks_it_up_once() {
|
||||
// The points in a sketch through the cylinder's axis, seen from the front: the face under the
|
||||
// cursor is the curved side, which takes no hole. It is looked up once, its triangles not at
|
||||
// all, and nothing is offered.
|
||||
// cursor is the curved side. A hole goes on it where it is picked (sketch points snap only
|
||||
// on flat faces): it is looked up once, its triangles not at all, and only the face is offered.
|
||||
let mut c = cylinder_with_cluster(json!({"plane": "XZ"}), [5.0, -10.0], "front");
|
||||
let many = c.many;
|
||||
let (list, (lookups, tested)) = c.select_other();
|
||||
assert_eq!(list["open"], json!(false), "nothing for a Single hole here: {list}");
|
||||
assert_eq!((rows_named(&list, "Point"), rows_named(&list, "Face")), (0, 1), "the curved face alone: {list}");
|
||||
assert_eq!(lookups, 1, "the curved face is looked up once for {many} points");
|
||||
assert_eq!(tested, 0, "no triangle of a curved face is looked at");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user