Close the path if necessary when rebuilding it for clipping

This commit is contained in:
Patrick Walton 2019-02-21 11:42:48 -08:00
parent fc62e9bc71
commit 66ee901e43
1 changed files with 3 additions and 0 deletions

View File

@ -181,6 +181,9 @@ trait ContourClipper where Self::Edge: TEdge {
for segment in input.iter() {
self.clip_segment_against(segment, &edge);
}
if input.is_closed() {
self.contour_mut().close();
}
}
fn clip_segment_against(&mut self, mut segment: Segment, edge: &Self::Edge) {