Revision 27221 branches/v2_0_0_prep/extensions/extEditing/src/com/iver/cit/gvsig/gui/cad/tools/PolygonCADTool.java
PolygonCADTool.java | ||
---|---|---|
73 | 73 |
protected Point2D center; |
74 | 74 |
protected int numLines = 5; |
75 | 75 |
protected boolean isI = true; |
76 |
|
|
76 |
|
|
77 | 77 |
/** |
78 | 78 |
* Crea un nuevo PolygonCADTool. |
79 | 79 |
*/ |
... | ... | |
276 | 276 |
double an = (Math.PI * 2) / numLines; |
277 | 277 |
GeneralPathX elShape = new GeneralPathX(); |
278 | 278 |
boolean firstTime=true; |
279 |
for (int i = numLines-1; i >=1 ; i--) {
|
|
279 |
for (int i = numLines-1; i >= 0 ; i--) {
|
|
280 | 280 |
Point2D p2 = UtilFunctions.getPoint(center, (an * i) + initangle, |
281 | 281 |
radio); |
282 | 282 |
Point2D[] ps1 = UtilFunctions.getPerpendicular(antPoint, center, |
Also available in: Unified diff