protected com.vividsolutions.jts.geom.Geometry computeJTSPeer() {
// For each segment that comprises us, get the JTS peer.
int n = curveSegments.size();
ArrayList allCoords = new ArrayList();
for (int i=0; i<n; i++) {
JTSGeometry g = (JTSGeometry) curveSegments.get(i);
com.vividsolutions.jts.geom.LineString jts =
(com.vividsolutions.jts.geom.LineString) g.getJTSGeometry();
int m = jts.getNumPoints();
for (int j=0; j<m; j++) {
allCoords.add(jts.getCoordinateN(j));
}
if (i != (n-1))