forked from 1b-agent/fieldcraft-upstream
Results: a static step first shows its contours undeformed
The first look at a solved static step draws the von Mises contours on the true geometry; the deformed shape comes when asked for (Deformed, results.deformed, results.animate), at the automatic scale. Frequency steps still open on mode 1 deformed and explicit steps at true scale, as the owner's notes in #77 ask; a 0.24 mm deflection drawn as 10 mm no longer reads as a failed part. Fixes #77 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
29af2aef91
commit
5758dc7911
6 files changed
+15
-11
No files matched your search
@@ -1693,7 +1693,8 @@ mod tests {
|
||||
app.start("solve.static").unwrap();
|
||||
app.run_dialog().unwrap();
|
||||
let view = app.session.results_view.clone().unwrap();
|
||||
assert_eq!((view.step.as_str(), view.contour, view.deformed), ("Load", Some(fieldcraft_engine::results::Field::VonMises), true));
|
||||
// A static step first shows its contours on the undeformed shape (#77).
|
||||
assert_eq!((view.step.as_str(), view.contour, view.deformed), ("Load", Some(fieldcraft_engine::results::Field::VonMises), false));
|
||||
app.logic(&egui::Context::default());
|
||||
assert_eq!(app.ui.tab, Tab::Results);
|
||||
app.run("solve.frequency", json!({})).unwrap();
|
||||
|
||||
Reference in new issue
Block a user