Print the vertex coordinates

This commit is contained in:
Aaron Fenyes 2025-09-22 12:30:38 -07:00
parent cc2da3406b
commit 1054f4e85b
2 changed files with 19 additions and 5 deletions

View file

@ -125,7 +125,7 @@ pub trait Element: Serial + ProblemPoser + DisplayItem {
fn set_column_index(&self, index: usize);
/* KLUDGE */
fn has_distortion(&self) -> bool {
fn is_point(&self) -> bool {
false
}
}
@ -341,7 +341,7 @@ impl Element for Point {
self.column_index.set(Some(index));
}
fn has_distortion(&self) -> bool {
fn is_point(&self) -> bool {
true
}
}
@ -422,7 +422,7 @@ impl InversiveDistanceRegulator {
});
let set_point = create_signal(SpecifiedValue::from_empty_spec());
let distortion = if subjects.iter().all(|subj| subj.has_distortion()) {
let distortion = if subjects.iter().all(|subj| subj.is_point()) {
Some(create_memo(move || {
let set_point_opt = set_point.with(|set_pt| set_pt.value);
let measurement_val = measurement.get();