mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-13 22:38: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> {
|
) -> 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user