mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-11 05:18:26 +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 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
|
/// # Convert a point in surface coordinates to global coordinates
|
||||||
pub fn convert_point_surface_to_global(
|
pub fn convert_point_surface_to_global(
|
||||||
@ -20,6 +20,7 @@ pub fn convert_vector_surface_to_global(
|
|||||||
surface: &dyn GenTriMesh,
|
surface: &dyn GenTriMesh,
|
||||||
vector: impl Into<Vector<2>>,
|
vector: impl Into<Vector<2>>,
|
||||||
tolerance: impl Into<Tolerance>,
|
tolerance: impl Into<Tolerance>,
|
||||||
|
_: &Geometry,
|
||||||
) -> Vector<3> {
|
) -> Vector<3> {
|
||||||
let vector = vector.into();
|
let vector = vector.into();
|
||||||
let point = convert_point_surface_to_global(
|
let point = convert_point_surface_to_global(
|
||||||
|
@ -81,11 +81,13 @@ impl SweepSurfacePath for Path<2> {
|
|||||||
surface,
|
surface,
|
||||||
circle.a(),
|
circle.a(),
|
||||||
core.tolerance(),
|
core.tolerance(),
|
||||||
|
&core.layers.geometry,
|
||||||
);
|
);
|
||||||
let b = convert_vector_surface_to_global(
|
let b = convert_vector_surface_to_global(
|
||||||
surface,
|
surface,
|
||||||
circle.b(),
|
circle.b(),
|
||||||
core.tolerance(),
|
core.tolerance(),
|
||||||
|
&core.layers.geometry,
|
||||||
);
|
);
|
||||||
|
|
||||||
let circle = Circle::new(center, a, b);
|
let circle = Circle::new(center, a, b);
|
||||||
@ -102,6 +104,7 @@ impl SweepSurfacePath for Path<2> {
|
|||||||
surface,
|
surface,
|
||||||
line.direction(),
|
line.direction(),
|
||||||
core.tolerance(),
|
core.tolerance(),
|
||||||
|
&core.layers.geometry,
|
||||||
);
|
);
|
||||||
|
|
||||||
let line = Line::from_origin_and_direction(origin, direction);
|
let line = Line::from_origin_and_direction(origin, direction);
|
||||||
|
Loading…
Reference in New Issue
Block a user