Skip to content

Commit

Permalink
Fix incorrect hatching when a hatch touches exactly at a vertex.
Browse files Browse the repository at this point in the history
  • Loading branch information
nical committed Jul 4, 2018
1 parent 6f0f751 commit 879d72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithms/src/hatching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ impl Hatcher {
self.segment.v = y - self.uv_origin.y;

for active_edge in &self.active_edges {
if active_edge.to.y < y {
if active_edge.to.y <= y {
// TODO: we don't remove the edges during merge events so we can
// end up with extra edges that end above the sweep line and have
// to skip them. It would be better to properly manage the sweep
Expand Down

0 comments on commit 879d72a

Please sign in to comment.