mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 02:48:27 +00:00
Prepare for follow-on change
This commit is contained in:
parent
2e04c47ea9
commit
7ca63e4344
@ -51,14 +51,14 @@ fn approx_curve(
|
||||
surface: &SweptCurve,
|
||||
boundary: CurveBoundary<Point<1>>,
|
||||
tolerance: impl Into<Tolerance>,
|
||||
_: &Geometry,
|
||||
geometry: &Geometry,
|
||||
) -> CurveApprox {
|
||||
let SweptCurve { u, .. } = surface;
|
||||
let points = match (path, u) {
|
||||
(Path::Circle(_), Path::Circle(_)) => approx_circle_on_curved_surface(),
|
||||
(Path::Circle(circle), Path::Line(_)) => {
|
||||
approx_circle_on_straight_surface(
|
||||
circle, boundary, surface, tolerance,
|
||||
circle, boundary, surface, tolerance, geometry,
|
||||
)
|
||||
}
|
||||
(Path::Line(line), _) => {
|
||||
@ -78,6 +78,7 @@ fn approx_circle_on_straight_surface(
|
||||
boundary: CurveBoundary<Point<1>>,
|
||||
surface: &SweptCurve,
|
||||
tolerance: impl Into<Tolerance>,
|
||||
_: &Geometry,
|
||||
) -> Vec<ApproxPoint<1>> {
|
||||
let tolerance = tolerance.into();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user