forked from 1b-agent/fieldcraft-upstream
Engine: mesh.seed.edge, mesh.seed.clear and mesh.seed.list
Seed design edges by their persistent names with a count or a size, a bias and a constraint; one undo step each, saved with the model. Seeds on edges a reopened design lacks are reported as stale. Part of #230. 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
f8e0be970e
commit
e8cada94d0
12 files changed
+295
-11
No files matched your search
@@ -695,7 +695,7 @@ impl ModelApp {
|
||||
/// empty when everything resolves.
|
||||
fn stale_note(stale: &Value) -> String {
|
||||
let names = |k: &str| stale.get(k).and_then(Value::as_array).into_iter().flatten().filter_map(Value::as_str).collect::<Vec<_>>().join(", ");
|
||||
let parts: Vec<String> = [("mesh of", names("mesh_bodies")), ("sets", names("sets"))]
|
||||
let parts: Vec<String> = [("mesh of", names("mesh_bodies")), ("sets", names("sets")), ("seeds on", names("seeds"))]
|
||||
.into_iter()
|
||||
.filter(|(_, n)| !n.is_empty())
|
||||
.map(|(what, n)| format!("{what} {n}"))
|
||||
|
||||
Reference in new issue
Block a user