Refactor to prepare for follow-on change

This commit is contained in:
Hanno Braun 2024-03-26 11:53:45 +01:00
parent c3cf4a8901
commit f95dc9cc0e

View File

@ -2,7 +2,6 @@ use fj_interop::Color;
use fj_math::Vector;
use crate::{
geometry::SurfaceGeometry,
operations::{
insert::Insert, reverse::Reverse, transform::TransformObject,
},
@ -55,7 +54,7 @@ impl SweepRegion for Region {
let top_exterior = sweep_cycle(
self.exterior(),
&core.layers.geometry.of_surface(&surface),
surface.clone(),
color,
&mut faces,
path,
@ -69,7 +68,7 @@ impl SweepRegion for Region {
.map(|bottom_cycle| {
sweep_cycle(
bottom_cycle,
&core.layers.geometry.of_surface(&surface),
surface.clone(),
color,
&mut faces,
path,
@ -96,7 +95,7 @@ impl SweepRegion for Region {
fn sweep_cycle(
bottom_cycle: &Cycle,
bottom_surface: &SurfaceGeometry,
bottom_surface: Handle<Surface>,
color: Option<Color>,
faces: &mut Vec<Face>,
path: Vector<3>,
@ -104,7 +103,7 @@ fn sweep_cycle(
core: &mut Core,
) -> Handle<Cycle> {
let swept_cycle = bottom_cycle.reverse(core).sweep_cycle(
bottom_surface,
&core.layers.geometry.of_surface(&bottom_surface),
color,
path,
cache,