}\r
}\r
else{ //bottom to up\r
- if(x1 == x2){ //is it right? ... no need\r
+ if(x1 == x2){\r
poly = new Polygon();\r
poly.push(x1 - kage.kMinWidthT, y1);\r
poly.push(x1 + kage.kMinWidthT, y1);\r
- poly.push(x1 - kage.kMinWidthT, y1 + kage.kMinWidthY);\r
+ poly.push(x1 + kage.kMinWidthT, y1 - kage.kMinWidthY);\r
polygons.push(poly);\r
}\r
else{\r
poly.push(x1, y1 - kage.kMinWidthY - kage.kWidth);\r
poly.push(x1 + kage.kMinWidthT + kage.kWidth, y1 + kage.kMinWidthY);\r
poly.push(x1 + kage.kMinWidthT, y1 + kage.kMinWidthT);\r
- poly.push(x1 - kage.kMinWidthT, y1);\r
+ poly.push(x1, y1 + kage.kMinWidthT);\r
polygons.push(poly);\r
}\r
\r