Package com.willwinder.universalgcodesender.types

Examples of com.willwinder.universalgcodesender.types.PointSegment.center()


        }
       
        // Get precalculated stuff.
        Point3d start     = startSegment.point();
        Point3d end       = lastSegment.point();
        Point3d center    = lastSegment.center();
        double radius     = lastSegment.getRadius();
        boolean clockwise = lastSegment.isClockwise();

        //
        // Start expansion.
View Full Code Here


            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);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.