Make argument name more explicit

This commit is contained in:
Hanno Braun 2024-05-15 14:11:44 +02:00
parent baf51fe38b
commit a63ad3080d

View File

@ -38,7 +38,7 @@ pub trait SweepCycle {
/// operation is called in, and therefore falls outside of its scope. /// operation is called in, and therefore falls outside of its scope.
fn sweep_cycle( fn sweep_cycle(
&self, &self,
surface: Handle<Surface>, bottom_surface: Handle<Surface>,
top_surface: Handle<Surface>, top_surface: Handle<Surface>,
color: Option<Color>, color: Option<Color>,
path: impl Into<Vector<3>>, path: impl Into<Vector<3>>,
@ -50,7 +50,7 @@ pub trait SweepCycle {
impl SweepCycle for Cycle { impl SweepCycle for Cycle {
fn sweep_cycle( fn sweep_cycle(
&self, &self,
surface: Handle<Surface>, bottom_surface: Handle<Surface>,
top_surface: Handle<Surface>, top_surface: Handle<Surface>,
color: Option<Color>, color: Option<Color>,
path: impl Into<Vector<3>>, path: impl Into<Vector<3>>,
@ -68,7 +68,7 @@ impl SweepCycle for Cycle {
let (side_face, top_half_edge) = bottom_half_edge.sweep_half_edge( let (side_face, top_half_edge) = bottom_half_edge.sweep_half_edge(
bottom_half_edge_next.start_vertex().clone(), bottom_half_edge_next.start_vertex().clone(),
surface.clone(), bottom_surface.clone(),
color, color,
path, path,
cache, cache,