forked from 1b-agent/fieldcraft-upstream
model: face splits along datum planes (#508)
A datum plane a split uses is in use, as one a partition cuts by. 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
e8e3fc647c
commit
6c79498005
3 files changed
+84
-3
No files matched your search
@@ -174,7 +174,8 @@ impl Model {
|
||||
/// The definitions that refer to a datum (the partitions that cut by it), as `kind \`name\``
|
||||
/// strings.
|
||||
pub fn datum_users(&self, name: &str) -> Vec<String> {
|
||||
self.partitions.iter().filter(|p| p.datum == name).map(|p| format!("partition `{}`", p.name)).collect()
|
||||
let partitions = self.partitions.iter().filter(|p| p.datum == name).map(|p| format!("partition `{}`", p.name));
|
||||
partitions.chain(self.face_splits().iter().filter(|s| s.datum == name).map(|s| format!("face split `{}`", s.name))).collect()
|
||||
}
|
||||
|
||||
/// The partitions, in the order they cut.
|
||||
|
||||
Reference in new issue
Block a user