mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-11 13:28:28 +00:00
Remove unused code
This commit is contained in:
parent
b13b4a5e23
commit
7b696898a7
@ -12,24 +12,9 @@ use crate::{
|
|||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
half_edge::{approx_half_edge, HalfEdgeApprox, HalfEdgeApproxCache},
|
half_edge::{approx_half_edge, HalfEdgeApprox, HalfEdgeApproxCache},
|
||||||
Approx, ApproxPoint, Tolerance,
|
ApproxPoint, Tolerance,
|
||||||
};
|
};
|
||||||
|
|
||||||
impl Approx for (&Cycle, &Handle<Surface>) {
|
|
||||||
type Approximation = CycleApprox;
|
|
||||||
type Cache = HalfEdgeApproxCache;
|
|
||||||
|
|
||||||
fn approx_with_cache(
|
|
||||||
self,
|
|
||||||
tolerance: impl Into<Tolerance>,
|
|
||||||
cache: &mut Self::Cache,
|
|
||||||
geometry: &Geometry,
|
|
||||||
) -> Self::Approximation {
|
|
||||||
let (cycle, surface) = self;
|
|
||||||
approx_cycle(cycle, surface, tolerance, cache, geometry)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Approximate the provided cycle
|
/// Approximate the provided cycle
|
||||||
pub fn approx_cycle(
|
pub fn approx_cycle(
|
||||||
cycle: &Cycle,
|
cycle: &Cycle,
|
||||||
|
Loading…
Reference in New Issue
Block a user