Package toxi.util.datatypes

Examples of toxi.util.datatypes.FloatRange


    protected static final Logger logger = Logger
            .getLogger(MeshLatticeBuilder.class.getName());

    public static WETriangleMesh build(WETriangleMesh mesh, int res,
            float stroke) {
        return build(mesh, res, new FloatRange(stroke, stroke));
    }
View Full Code Here


        return mesh;
    }

    public static VolumetricSpace buildVolume(WETriangleMesh mesh, int res,
            float stroke) {
        return buildVolume(mesh, res, new FloatRange(stroke, stroke));
    }
View Full Code Here

    private ScaleMap bboxToVoxelY;
    private ScaleMap bboxToVoxelZ;

    public MeshLatticeBuilder(Vec3D scale, int res, float stroke) {
        this(scale, res, res, res, new FloatRange(stroke, stroke));
    }
View Full Code Here

        setMesh(mesh);
        List<Float> edgeLengths = new ArrayList<Float>(mesh.edges.size());
        for (WingedEdge e : mesh.edges.values()) {
            edgeLengths.add(e.getLength());
        }
        FloatRange range = FloatRange.fromSamples(edgeLengths);
        ScaleMap brushSize = new ScaleMap(range.min, range.max, stroke.min,
                stroke.max);
        for (WingedEdge e : mesh.edges.values()) {
            brush.setSize((float) brushSize.getClippedValueFor(e.getLength()));
            createLattice(brush, e, drawStep);
View Full Code Here

        assertEquals(ri.getBias(), ci.getBias());
        assertEquals(ri.getStandardDeviation(), ci.getStandardDeviation());
    }

    public void testRangeArray() {
        Float[] r = new FloatRange(0, 10).toArray(0.1f);
        dumpArray(r);
    }
View Full Code Here

TOP

Related Classes of toxi.util.datatypes.FloatRange

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.