mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-09 04:18:28 +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(
|
fn sweep_cycle(
|
||||||
&self,
|
&self,
|
||||||
surface: Handle<Surface>,
|
surface: Handle<Surface>,
|
||||||
|
top_surface: Handle<Surface>,
|
||||||
color: Option<Color>,
|
color: Option<Color>,
|
||||||
path: impl Into<Vector<3>>,
|
path: impl Into<Vector<3>>,
|
||||||
cache: &mut SweepCache,
|
cache: &mut SweepCache,
|
||||||
@ -50,6 +51,7 @@ impl SweepCycle for Cycle {
|
|||||||
fn sweep_cycle(
|
fn sweep_cycle(
|
||||||
&self,
|
&self,
|
||||||
surface: Handle<Surface>,
|
surface: Handle<Surface>,
|
||||||
|
_top_surface: Handle<Surface>,
|
||||||
color: Option<Color>,
|
color: Option<Color>,
|
||||||
path: impl Into<Vector<3>>,
|
path: impl Into<Vector<3>>,
|
||||||
cache: &mut SweepCache,
|
cache: &mut SweepCache,
|
||||||
|
@ -100,7 +100,7 @@ impl SweepRegion for Region {
|
|||||||
fn sweep_cycle(
|
fn sweep_cycle(
|
||||||
bottom_cycle: &Cycle,
|
bottom_cycle: &Cycle,
|
||||||
bottom_surface: Handle<Surface>,
|
bottom_surface: Handle<Surface>,
|
||||||
_top_surface: Handle<Surface>,
|
top_surface: Handle<Surface>,
|
||||||
color: Option<Color>,
|
color: Option<Color>,
|
||||||
faces: &mut Vec<Face>,
|
faces: &mut Vec<Face>,
|
||||||
path: Vector<3>,
|
path: Vector<3>,
|
||||||
@ -109,6 +109,7 @@ fn sweep_cycle(
|
|||||||
) -> Handle<Cycle> {
|
) -> Handle<Cycle> {
|
||||||
let swept_cycle = bottom_cycle.reverse(core).sweep_cycle(
|
let swept_cycle = bottom_cycle.reverse(core).sweep_cycle(
|
||||||
bottom_surface,
|
bottom_surface,
|
||||||
|
top_surface,
|
||||||
color,
|
color,
|
||||||
path,
|
path,
|
||||||
cache,
|
cache,
|
||||||
|
Loading…
Reference in New Issue
Block a user