mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 18:38:28 +00:00
Prepare for follow-on change
This commit is contained in:
parent
e58dbdddd3
commit
3fb44e6932
@ -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(
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user