<BUG>return BoundaryPolyCirculinearCurve2D.create(parallelCurves,contour.isClosed());</BUG><CONTEXT>if (contour instanceof Circle2D) {return ((Circle2D) contour).parallel(dist);}Collection<CirculinearContinuousCurve2D> parallelCurves =getParallelElements(contour, dist);<extra_id_0>}public CirculinearContinuousCurve2D createContinuousParallel(CirculinearContinuousCurve2D curve, double dist) {</CONTEXT>
return BoundaryPolyCirculinearCurve2D.create(parallelCurves.toArray(new CirculinearContinuousCurve2D[0]),contour.isClosed());