mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-13 14:28:27 +00:00
Rename argument to make it more specific
This commit is contained in:
parent
3825599792
commit
c9bfce1ca9
@ -177,13 +177,13 @@ fn distances(
|
||||
) -> impl Iterator<Item = Scalar> {
|
||||
fn sample(
|
||||
percent: f64,
|
||||
(edge, surface): (&Handle<HalfEdge>, &SurfaceGeom),
|
||||
(half_edge, surface): (&Handle<HalfEdge>, &SurfaceGeom),
|
||||
geometry: &Geometry,
|
||||
) -> 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 surface_coords = geometry
|
||||
.of_half_edge(edge)
|
||||
.of_half_edge(half_edge)
|
||||
.path
|
||||
.point_from_path_coords(path_coords);
|
||||
surface.point_from_surface_coords(surface_coords)
|
||||
|
Loading…
Reference in New Issue
Block a user