Пример #1
0
  public void endGeometry() {
    try {
      if (((FLyrVect) getVLE().getLayer()).getShapeType() == Geometry.TYPES.SURFACE && !close) {
        closeGeometry();
      }
    } catch (ReadException e) {
      NotificationManager.addError(e.getMessage(), e);
    }

    // No queremos guardar FGeometryCollections:
    Geometry newGeom = createSpline((Point2D[]) list.toArray(new Point2D[0]));
    insertAndSelectGeometry(newGeom);
    _fsm = new SplineCADToolContext(this);
    list.clear();
    clearTemporalCache();
    close = false;
  }