mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-03 17:38:27 +00:00
Provide top surface to SweepCycle::sweep_cycle
This commit is contained in:
parent
537519737d
commit
ce326893a4
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user