fj_core/algorithms/approx/
shell.rs1use std::collections::BTreeSet;
4
5use crate::{objects::Shell, Core};
6
7use super::{edge::HalfEdgeApproxCache, face::FaceApprox, Approx, Tolerance};
8
9impl Approx for &Shell {
10 type Approximation = BTreeSet<FaceApprox>;
11 type Cache = HalfEdgeApproxCache;
12
13 fn approx_with_cache(
14 self,
15 tolerance: impl Into<Tolerance>,
16 cache: &mut Self::Cache,
17 core: &mut Core,
18 ) -> Self::Approximation {
19 self.faces().approx_with_cache(tolerance, cache, core)
20 }
21}