public Bounds getBounds() { Bounds bounds = new Bounds(); Iterator<LW2DVertex> i = vertices.iterator(); if (i.hasNext()) { LW2DVertex last; LW2DVertex first; LW2DVertex v = null; last = first = i.next(); bounds.addToBounds(last.getX(), last.getY(), 0.0); while (i.hasNext()) { v = i.next(); addToBounds(last, v, bounds); last = v; } if ((v != null) && (v.getBulge() != 0.0)) { addToBounds(v, first, bounds); } } else { bounds.setValid(false); } return bounds; }
public Bounds getBounds() { Bounds bounds = new Bounds(); bounds.setValid(false); return bounds; }