Provide top surface to SweepCycle::sweep_cycle

This commit is contained in:
Hanno Braun 2024-05-03 13:57:00 +02:00
parent 537519737d
commit ce326893a4
2 changed files with 4 additions and 1 deletions

View File

@ -39,6 +39,7 @@ pub trait SweepCycle {
fn sweep_cycle(
&self,
surface: Handle<Surface>,
top_surface: Handle<Surface>,
color: Option<Color>,
path: impl Into<Vector<3>>,
cache: &mut SweepCache,
@ -50,6 +51,7 @@ impl SweepCycle for Cycle {
fn sweep_cycle(
&self,
surface: Handle<Surface>,
_top_surface: Handle<Surface>,
color: Option<Color>,
path: impl Into<Vector<3>>,
cache: &mut SweepCache,

View File

@ -100,7 +100,7 @@ impl SweepRegion for Region {
fn sweep_cycle(
bottom_cycle: &Cycle,
bottom_surface: Handle<Surface>,
_top_surface: Handle<Surface>,
top_surface: Handle<Surface>,
color: Option<Color>,
faces: &mut Vec<Face>,
path: Vector<3>,
@ -109,6 +109,7 @@ fn sweep_cycle(
) -> Handle<Cycle> {
let swept_cycle = bottom_cycle.reverse(core).sweep_cycle(
bottom_surface,
top_surface,
color,
path,
cache,