Rename argument to make it more specific

This commit is contained in:
Hanno Braun 2024-06-17 22:19:31 +02:00
parent 3825599792
commit c9bfce1ca9

View File

@ -177,13 +177,13 @@ fn distances(
) -> impl Iterator<Item = Scalar> { ) -> impl Iterator<Item = Scalar> {
fn sample( fn sample(
percent: f64, percent: f64,
(edge, surface): (&Handle<HalfEdge>, &SurfaceGeom), (half_edge, surface): (&Handle<HalfEdge>, &SurfaceGeom),
geometry: &Geometry, geometry: &Geometry,
) -> Point<3> { ) -> Point<3> {
let [start, end] = geometry.of_half_edge(edge).boundary.inner; let [start, end] = geometry.of_half_edge(half_edge).boundary.inner;
let path_coords = start + (end - start) * percent; let path_coords = start + (end - start) * percent;
let surface_coords = geometry let surface_coords = geometry
.of_half_edge(edge) .of_half_edge(half_edge)
.path .path
.point_from_path_coords(path_coords); .point_from_path_coords(path_coords);
surface.point_from_surface_coords(surface_coords) surface.point_from_surface_coords(surface_coords)