Skip to content

Commit

Permalink
Workaround for issue #8; make sure sentinels are not coincident
Browse files Browse the repository at this point in the history
  • Loading branch information
kintel committed Jan 13, 2015
1 parent a43504d commit 7e004eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/sweep.c
Original file line number Diff line number Diff line change
Expand Up @@ -1121,10 +1121,10 @@ static void InitEdgeDict( TESStesselator *tess )
w = (tess->bmax[0] - tess->bmin[0]);
h = (tess->bmax[1] - tess->bmin[1]);

smin = tess->bmin[0] - w;
smax = tess->bmax[0] + w;
tmin = tess->bmin[1] - h;
tmax = tess->bmax[1] + h;
smin = tess->bmin[0] - w - 0.01;
smax = tess->bmax[0] + w + 0.01;
tmin = tess->bmin[1] - h - 0.01;
tmax = tess->bmax[1] + h + 0.01;

AddSentinel( tess, smin, smax, tmin );
AddSentinel( tess, smin, smax, tmax );
Expand Down

0 comments on commit 7e004eb

Please sign in to comment.