mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-15 07:48:29 -04:00
fixed a bug in the polygon merger
This commit is contained in:
parent
e49d0702d1
commit
a3767b80a9
@ -137,7 +137,8 @@ public class Polygon implements Iterable<Vector> {
|
|||||||
* @return this for chained calls
|
* @return this for chained calls
|
||||||
*/
|
*/
|
||||||
public Polygon append(Polygon p2) {
|
public Polygon append(Polygon p2) {
|
||||||
points.addAll(p2.points);
|
for (int i = 1; i < p2.points.size(); i++)
|
||||||
|
points.add(p2.points.get(i));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,6 +104,5 @@ public class GraphicLineCollector implements Graphic {
|
|||||||
public void drawTo(Graphic gr) {
|
public void drawTo(Graphic gr) {
|
||||||
for (PolygonSet p : polys.values())
|
for (PolygonSet p : polys.values())
|
||||||
p.drawTo(gr);
|
p.drawTo(gr);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user