fj-core 0.49.0

Early-stage b-rep CAD kernel.
Documentation
//! Shell approximation

use std::collections::BTreeSet;

use crate::{objects::Shell, Core};

use super::{edge::HalfEdgeApproxCache, face::FaceApprox, Approx, Tolerance};

impl Approx for &Shell {
    type Approximation = BTreeSet<FaceApprox>;
    type Cache = HalfEdgeApproxCache;

    fn approx_with_cache(
        self,
        tolerance: impl Into<Tolerance>,
        cache: &mut Self::Cache,
        core: &mut Core,
    ) -> Self::Approximation {
        self.faces().approx_with_cache(tolerance, cache, core)
    }
}