Print the vertex coordinates
This commit is contained in:
parent
cc2da3406b
commit
1054f4e85b
2 changed files with 19 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue