Package bs.bs2d.slicer

Examples of bs.bs2d.slicer.PrintObject


       
        if(x == 0 || y == 0){
            UserMessage.showError("Error!", "Object does not fit on print bed!");
        }
       
        optimized = new PrintObject(areaSet, toDouble(densities), controls.getObjectHeight());
        uniform = optimized.getUniform();
       
        double filament = slice(optimized);
        double eqDensity = getEquivalentDensity(uniform, filament, 0.0005);
       
View Full Code Here


        return positions;
    }
   
    private List<PrintObject> getPrintObjects(int count, boolean pairs, boolean printOptimized){
        ArrayList<PrintObject> tiles = new ArrayList<>(count);
        PrintObject obj;
       
        for (int i = 0; i < count; i++) {

            if(pairs){
                if(i % 2 == 0)
                    obj = optimized;
                else
                    obj = uniform;
            } else {
                if(printOptimized)
                    obj = optimized;
                else
                    obj = uniform;
            }
            tiles.add(new PrintObject(obj, positions[i]));
        }
       
        return tiles;
    }
View Full Code Here

        double t1y = bsp.print_center[1] - (widthY - bb.getHeight())/2;
        double disty = bb.getHeight() + bsp.gap;
       
        ArrayList<PrintObject> tiles = new ArrayList<>(x * y);
        int counter = 0;
        PrintObject obj;
        for (int ix = 0; ix < x; ix++) {
            for (int iy = 0; iy < y; iy++) {
                if(pairs){
                    if(counter % 2 == 0)
                        obj = optimized;
                    else
                        obj = uniform;
                } else {
                    if(printOptimized)
                        obj = optimized;
                    else
                        obj = uniform;
                }
                Point2d pos = new Point2d(t1x + ix*distx, t1y + iy*disty);
                tiles.add(new PrintObject(obj, pos));
               
                counter++;
            }
        }
       
View Full Code Here

TOP

Related Classes of bs.bs2d.slicer.PrintObject

Copyright © 2018 www.massapicom. 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.