Prepare for follow-on change

This commit is contained in:
Hanno Braun 2024-10-23 19:04:05 +02:00
parent e58dbdddd3
commit 3fb44e6932
2 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@
use fj_math::{Point, Vector};
use crate::geometry::{traits::GenTriMesh, Tolerance};
use crate::geometry::{traits::GenTriMesh, Geometry, Tolerance};
/// # Convert a point in surface coordinates to global coordinates
pub fn convert_point_surface_to_global(
@ -20,6 +20,7 @@ pub fn convert_vector_surface_to_global(
surface: &dyn GenTriMesh,
vector: impl Into<Vector<2>>,
tolerance: impl Into<Tolerance>,
_: &Geometry,
) -> Vector<3> {
let vector = vector.into();
let point = convert_point_surface_to_global(

View File

@ -81,11 +81,13 @@ impl SweepSurfacePath for Path<2> {
surface,
circle.a(),
core.tolerance(),
&core.layers.geometry,
);
let b = convert_vector_surface_to_global(
surface,
circle.b(),
core.tolerance(),
&core.layers.geometry,
);
let circle = Circle::new(center, a, b);
@ -102,6 +104,7 @@ impl SweepSurfacePath for Path<2> {
surface,
line.direction(),
core.tolerance(),
&core.layers.geometry,
);
let line = Line::from_origin_and_direction(origin, direction);