Remove redundant code

This commit is contained in:
Hanno Braun 2022-11-04 15:21:11 +01:00
parent 19da56d345
commit a988da3e5a
1 changed files with 1 additions and 3 deletions

View File

@ -187,10 +187,8 @@ impl<'a> ShellBuilder<'a> {
.zip(sides_up) .zip(sides_up)
.zip(tops.clone()) .zip(tops.clone())
.zip(sides_down) .zip(sides_down)
.zip(surfaces) .map(|(((bottom, side_up), top), side_down)| {
.map(|((((bottom, side_up), top), side_down), surface)| {
let cycle = Cycle::partial() let cycle = Cycle::partial()
.with_surface(Some(surface))
.with_half_edges([bottom, side_up, top, side_down]) .with_half_edges([bottom, side_up, top, side_down])
.build(self.objects) .build(self.objects)
.unwrap(); .unwrap();