Skip to content

Commit

Permalink
get the metric after sequential remeshing
Browse files Browse the repository at this point in the history
  • Loading branch information
xgarnaud committed Nov 28, 2024
1 parent 51a4e06 commit 4f6015b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/remesher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,13 @@ macro_rules! create_remesher {
pub fn stats_json(&self) -> String {
self.remesher.stats_json()
}

/// Get the metric
#[must_use]
pub fn metric<'py>(&self, py: Python<'py>) -> Bound<'py, PyArray2<f64>> {

return to_numpy_2d(py, self.remesher.metric(), <$metric as Metric<$dim>>::N);
}
}
};
}
Expand Down

0 comments on commit 4f6015b

Please sign in to comment.