if (start != null) {
// Expand arc for graphics.
if (ps.isArc()) {
List<Point3d> points =
GcodePreprocessorUtils.generatePointsAlongArcBDring(
start, end, ps.center(), ps.isClockwise(), ps.getRadius(), minArcLength, arcSegmentLength);
// Create line segments from points.
if (points != null) {
Point3d startPoint = start;
for (Point3d nextPoint : points) {
ls = new LineSegment(startPoint, nextPoint, num);