Minor nudging of polygons to avoid gpc failures
This commit is contained in:
parent
e62ee35e9b
commit
cbade0853d
1 changed files with 2 additions and 2 deletions
|
@ -325,8 +325,8 @@ void make_gpc_poly( const TGPolygon& in, gpc_polygon *out ) {
|
||||||
|
|
||||||
for ( int j = 0; j < in.contour_size( i ); ++j ) {
|
for ( int j = 0; j < in.contour_size( i ); ++j ) {
|
||||||
p = in.get_pt( i, j );
|
p = in.get_pt( i, j );
|
||||||
v_list.vertex[j].x = p.x();
|
v_list.vertex[j].x = p.x()+2*SG_EPSILON;
|
||||||
v_list.vertex[j].y = p.y();
|
v_list.vertex[j].y = p.y()+2*SG_EPSILON;
|
||||||
}
|
}
|
||||||
v_list.num_vertices = in.contour_size( i );
|
v_list.num_vertices = in.contour_size( i );
|
||||||
gpc_add_contour( out, &v_list, in.get_hole_flag( i ) );
|
gpc_add_contour( out, &v_list, in.get_hole_flag( i ) );
|
||||||
|
|
Loading…
Add table
Reference in a new issue