mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-14 07:17:13 -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
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -104,6 +104,5 @@ public class GraphicLineCollector implements Graphic {
|
||||
public void drawTo(Graphic gr) {
|
||||
for (PolygonSet p : polys.values())
|
||||
p.drawTo(gr);
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user