Revision 44099 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.jts/src/main/java/org/gvsig/fmap/geom/jts/primitive/surface/circle/BaseCircle2DZ.java

View differences:

BaseCircle2DZ.java
82 82
     * org.gvsig.fmap.geom.primitive.Point)
83 83
     */
84 84
    public void setPoints(Point p1, Point p2, Point p3) {
85
        this.center = new Point3D(JTSUtils.getCircumcentre(p1, p2, p3));
85
        this.center = new Point3D(p1.getProjection(),JTSUtils.getCircumcentre(p1, p2, p3));
86 86
        //Por si los tres puntos no tienen la misma z
87 87
        Point3D aPoint = new Point3D(p1.getX(), p1.getY(), ((Point3D)center).getZ());
88 88
        this.radius = ((PointJTS) this.center).getJTS().distance(aPoint.getJTS());
89
        this.setProjection(this.center.getProjection());
89 90
    }
90 91

  
91 92
    /*
......
150 151
        Coordinate[] coordinates = getJTS().getCoordinates();
151 152
        multiPoint.ensureCapacity(coordinates.length);
152 153
        for (int i = 0; i < coordinates.length; i++) {
153
            multiPoint.addPoint(new Point3D(coordinates[i]));
154
            multiPoint.addPoint(new Point3D(this.getProjection(), coordinates[i]));
154 155
        }
155 156
        return multiPoint;
156 157
    }

Also available in: Unified diff