forked from 1b-agent/fieldcraft-upstream
Partitions hide their datum plane
geometry.partition hides the plane it cuts by (view state, saved with the model): the cut shows as edges on the cells. The eye or selecting it in the browser shows it again. The crank samples so open without their planes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
This commit is contained in:
1 parent
dddb2d0584
commit
a0d11f1c22
4 files changed
+24
-5
No files matched your search
@@ -879,6 +879,9 @@ mod tests {
|
||||
let mut cells: Vec<String> = CRANK_CELLS.iter().map(|c| c.to_string()).collect();
|
||||
cells.push("CrankArm/b".into());
|
||||
assert_eq!(bodies, cells);
|
||||
// The partitions' datum planes are hidden: the crank opens without a cage of planes.
|
||||
assert!(s.model.datums().len() >= 7 && s.model.datums().keys().all(|d| !s.shows(crate::ItemKind::Datum, d)), "datums shown");
|
||||
assert!(!s.is_dirty(), "a sample just opened has nothing to save");
|
||||
assert!(s.model.ties().is_empty(), "every cut merged");
|
||||
let elements = s.model.elements().values().filter(|e| e.kind == fieldcraft_model::ElementKind::Hex20).count();
|
||||
assert_eq!(elements, s.model.elements().len());
|
||||
|
||||
Reference in new issue
Block a user