Close the path if necessary when rebuilding it for clipping
This commit is contained in:
parent
fc62e9bc71
commit
66ee901e43
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue