clipper.hpp | clipper.hpp | |||
---|---|---|---|---|
/************************************************************************** ***** | /************************************************************************** ***** | |||
* * | * * | |||
* Author : Angus Johnson * | * Author : Angus Johnson * | |||
* Version : 5.1.2 | * Version : 5.1.3 | |||
* | * | |||
* Date : 25 February 2013 | * Date : 14 March 2013 | |||
* | * | |||
* Website : http://www.angusj.com * | * Website : http://www.angusj.com * | |||
* Copyright : Angus Johnson 2010-2013 * | * Copyright : Angus Johnson 2010-2013 * | |||
* * | * * | |||
* License: * | * License: * | |||
* Use, modification & distribution is subject to Boost Software License Ver 1. * | * Use, modification & distribution is subject to Boost Software License Ver 1. * | |||
* http://www.boost.org/LICENSE_1_0.txt * | * http://www.boost.org/LICENSE_1_0.txt * | |||
* * | * * | |||
* Attributions: * | * Attributions: * | |||
* The code in this library is an extension of Bala Vatti's clipping algorit hm: * | * The code in this library is an extension of Bala Vatti's clipping algorit hm: * | |||
* "A generic solution to polygon clipping" * | * "A generic solution to polygon clipping" * | |||
skipping to change at line 136 | skipping to change at line 136 | |||
struct TEdge { | struct TEdge { | |||
long64 xbot; | long64 xbot; | |||
long64 ybot; | long64 ybot; | |||
long64 xcurr; | long64 xcurr; | |||
long64 ycurr; | long64 ycurr; | |||
long64 xtop; | long64 xtop; | |||
long64 ytop; | long64 ytop; | |||
double dx; | double dx; | |||
long64 deltaX; | long64 deltaX; | |||
long64 deltaY; | long64 deltaY; | |||
long64 tmpX; | ||||
PolyType polyType; | PolyType polyType; | |||
EdgeSide side; | EdgeSide side; | |||
int windDelta; //1 or -1 depending on winding direction | int windDelta; //1 or -1 depending on winding direction | |||
int windCnt; | int windCnt; | |||
int windCnt2; //winding count of the opposite polytype | int windCnt2; //winding count of the opposite polytype | |||
int outIdx; | int outIdx; | |||
TEdge *next; | TEdge *next; | |||
TEdge *prev; | TEdge *prev; | |||
TEdge *nextInLML; | TEdge *nextInLML; | |||
TEdge *nextInAEL; | TEdge *nextInAEL; | |||
End of changes. 2 change blocks. | ||||
5 lines changed or deleted | 4 lines changed or added | |||