Package org.kabeja.dxf

Examples of org.kabeja.dxf.DXFPolyline.addVertex()


        if ((spline.getDegree() > 0) && (spline.getKnots().length > 0)) {
          // 2014-07-13 changed 30 to 10 to reduce the amount of memory used
            Iterator<Point> pi = new NURBSFixedNTELSPointIterator(toNurbs(spline), ntels);

            while (pi.hasNext()) {
                p.addVertex(new DXFVertex(pi.next()));
            }
        } else {
            // the curve is the control point polygon
            Iterator<SplinePoint> i = spline.getSplinePointIterator();
View Full Code Here


            while (i.hasNext()) {
                SplinePoint sp = i.next();

                if (sp.isControlPoint()) {
                    p.addVertex(new DXFVertex(sp));
                }
            }
        }

        if (spline.isClosed()) {
View Full Code Here

    public void createDXFPolyline(DXFLayer layer) {
        // create the polyline and remove the entity
        DXFPolyline pline = new DXFPolyline();
        DXFVertex first = new DXFVertex(this.startPoint);
        pline.addVertex(first);

        Iterator<DXFEntity> i = this.elements.iterator();

        while (i.hasNext()) {
            DXFEntity e = (DXFEntity) i.next();
View Full Code Here

            DXFEntity e = (DXFEntity) i.next();

            if (DXFConstants.ENTITY_TYPE_LINE.equals(e.getType())) {
                DXFLine line = (DXFLine) e;
                first = new DXFVertex(line.getEndPoint());
                pline.addVertex(first);
            } else if (DXFConstants.ENTITY_TYPE_POLYLINE.equals(e.getType()) ||
                    DXFConstants.ENTITY_TYPE_LWPOLYLINE.equals(e.getType())) {
                DXFPolyline pl = (DXFPolyline) e;
                double bulge = pl.getVertex(0).getBulge();
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.