Skip to content

Commit

Permalink
Inline redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Dec 15, 2023
1 parent a99b99e commit 19ad445
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions models/star/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,14 @@ pub fn model(
let surface = services.objects.surfaces.xy_plane();
let path = Vector::from([0., 0., h]);

let sketch = Sketch::empty().add_region(
Region::polygon(outer_points, services)
.add_interiors([Cycle::polygon(inner_points, services)
.reverse(services)
.insert(services)])
.insert(services),
);

sketch
Sketch::empty()
.add_region(
Region::polygon(outer_points, services)
.add_interiors([Cycle::polygon(inner_points, services)
.reverse(services)
.insert(services)])
.insert(services),
)
.sweep_sketch(surface, path, services)
.insert(services)
}

0 comments on commit 19ad445

Please sign in to comment.