mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-07 11:28:28 +00:00
Prepare for follow-on change
This commit is contained in:
parent
74e577440f
commit
f1e1b3ed63
@ -31,7 +31,13 @@ pub fn approx_cycle(
|
|||||||
.map(|half_edge| {
|
.map(|half_edge| {
|
||||||
let boundary = geometry.of_half_edge(half_edge).boundary;
|
let boundary = geometry.of_half_edge(half_edge).boundary;
|
||||||
approx_half_edge(
|
approx_half_edge(
|
||||||
half_edge, surface, boundary, tolerance, cache, geometry,
|
half_edge,
|
||||||
|
surface,
|
||||||
|
boundary,
|
||||||
|
tolerance,
|
||||||
|
&mut cache.vertex,
|
||||||
|
&mut cache.curve,
|
||||||
|
geometry,
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
@ -13,7 +13,8 @@ use crate::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
curve::approx_curve_with_cache, vertex::approx_vertex, ApproxCache,
|
curve::{approx_curve_with_cache, CurveApproxCache},
|
||||||
|
vertex::{approx_vertex, VertexApproxCache},
|
||||||
ApproxPoint, Tolerance,
|
ApproxPoint, Tolerance,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -23,7 +24,8 @@ pub fn approx_half_edge(
|
|||||||
surface: &Handle<Surface>,
|
surface: &Handle<Surface>,
|
||||||
boundary: CurveBoundary<Point<1>>,
|
boundary: CurveBoundary<Point<1>>,
|
||||||
tolerance: impl Into<Tolerance>,
|
tolerance: impl Into<Tolerance>,
|
||||||
cache: &mut ApproxCache,
|
vertex_cache: &mut VertexApproxCache,
|
||||||
|
curve_cache: &mut CurveApproxCache,
|
||||||
geometry: &Geometry,
|
geometry: &Geometry,
|
||||||
) -> HalfEdgeApprox {
|
) -> HalfEdgeApprox {
|
||||||
let tolerance = tolerance.into();
|
let tolerance = tolerance.into();
|
||||||
@ -35,7 +37,7 @@ pub fn approx_half_edge(
|
|||||||
half_edge.curve(),
|
half_edge.curve(),
|
||||||
surface,
|
surface,
|
||||||
start_position_curve,
|
start_position_curve,
|
||||||
&mut cache.vertex,
|
vertex_cache,
|
||||||
geometry,
|
geometry,
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -44,7 +46,7 @@ pub fn approx_half_edge(
|
|||||||
surface,
|
surface,
|
||||||
boundary,
|
boundary,
|
||||||
tolerance,
|
tolerance,
|
||||||
&mut cache.curve,
|
curve_cache,
|
||||||
geometry,
|
geometry,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user