public List<LineSegment> asLineSegments() {
/* Schleife ueber alle CurveSegments */
ArrayList<LineSegment> mergedSegments = new ArrayList<LineSegment>();
for (CurveSegment curveSegment : this.curveSegments) {
LineString lineString = curveSegment.asLineString(0, 0);
List<LineSegment> lineSegments = lineString.asLineSegments();
for (LineSegment lineSegment : lineSegments)
mergedSegments.add(lineSegment);
}
return mergedSegments;