forked from 1b-agent/fieldcraft-upstream
UI: seeds as ticks along their edges, Mesh › Seeds, and seeding the selection
A seed draws a tick at each node it puts on its edge, so a bias shows as ticks crowding toward an end. The browser lists the seeds under Mesh; a click selects the seeded edge. The Seed Edges form takes the selected edges with Use selection. The toolbar entry is ready (its icon renamed with it). 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
e8cada94d0
commit
8df4ea040c
9 files changed
+134
-4
No files matched your search
@@ -840,6 +840,7 @@ impl ModelApp {
|
||||
let mut symbols = scene::symbols(&mut s, &self.glyphs, |n| drawn.node_position(n), show, self.plot.1.is_some(), &t);
|
||||
if show.geometry && self.plot.1.is_none() {
|
||||
symbols.union(scene::datums(&mut s, &self.session.model, &self.display.1.bounds, &t));
|
||||
scene::seeds(&mut s, &self.session.model, &self.pick.names, &self.display.1, &t);
|
||||
}
|
||||
self.scene = (Some(key), s, symbols);
|
||||
}
|
||||
@@ -1050,6 +1051,9 @@ impl ModelApp {
|
||||
let Some(target) = selection::target(command, ¶ms) else { return Err(format!("{command} takes no selection")) };
|
||||
let filled = match target {
|
||||
selection::Target::Members => selection::with_members(¶ms, &self.pick.selection),
|
||||
selection::Target::Edges => {
|
||||
selection::with_edges(¶ms, &self.pick.selection).ok_or("no edge is selected: pick edges with Select: Edges")?
|
||||
}
|
||||
selection::Target::Set | selection::Target::TargetSet => {
|
||||
let base = params.get("name").and_then(Value::as_str).map(|n| format!("{n}-set"));
|
||||
let set = self.selection_set(base.as_deref())?;
|
||||
|
||||
Reference in new issue
Block a user