Examples of updateModelBound()


Examples of com.ardor3d.scenegraph.shape.PQTorus.updateModelBound()

        addControls();

        // Add something to move around
        final PQTorus obj = new PQTorus("obj", 4, 3, 1.5, .5, 128, 8);
        obj.setScale(10);
        obj.updateModelBound();
        _root.attachChild(obj);
        _root.updateGeometricState(0);
        try {
            Thread.sleep(500);
        } catch (final InterruptedException e) {
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Pyramid.updateModelBound()

        tip.getMeshData().translatePoints(0, _tipGap + _length + 0.5 * tipLength, 0);
        tip.getMeshData().rotatePoints(InteractArrow.rotator);
        tip.getMeshData().rotateNormals(InteractArrow.rotator);

        attachChild(tip);
        tip.updateModelBound();

    }

    public double getLengthGap() {
        return _lengthGap;
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Quad.updateModelBound()

        _lightState.setTwoSidedLighting(true);
    }

    private Mesh createFloor() {
        final Mesh floor = new Quad("Floor", 100, 100);
        floor.updateModelBound();
        // set the color to green using a single color value
        floor.setDefaultColor(ColorRGBA.GREEN);
        // move back from camera.
        floor.setTranslation(0, -5, -20);
        // rotate to point up
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Sphere.updateModelBound()

     *            Index of the sphere
     */
    void randomSphere(final int i) {
        // Crate a sphere and position it.
        final Sphere sphere = new Sphere("sphere" + i, 18, 18, MathUtils.nextRandomDouble() * 1.75 + 1.25);
        sphere.updateModelBound();
        sphere.setTranslation(new Vector3(rand.nextDouble() * worldsize * 2 - worldsize, rand.nextDouble() * worldsize
                * 2 - worldsize, rand.nextDouble() * worldsize * 2 - worldsize));

        _root.attachChild(sphere);
    }
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Sphere.updateModelBound()

        _root.attachChild(n1);

        final Random rand = new Random(1337);

        final Sphere sphere = new Sphere("Sphere", 8, 8, 1);
        sphere.updateModelBound();

        for (int i = 0; i < 200; i++) {
            final Mesh sm = sphere.makeCopy(true);

            sm.setTranslation(new Vector3(rand.nextDouble() * 100.0 - 50.0, rand.nextDouble() * 100.0 - 50.0, rand
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Teapot.updateModelBound()

        quad.updateModelBound();
        quad.setRenderState(bgts);

        final Teapot teapot = new Teapot();
        teapot.setScale(20);
        teapot.updateModelBound();
        teapot.setRandomColors();

        final Mesh multiStrip = createMultiStrip();
        multiStrip.updateModelBound();
        multiStrip.setTranslation(0, 0, -30);
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Torus.updateModelBound()

        ts.setTexture(t0, 0);
        ts.setTexture(t1, 1);
        ts.setEnabled(true);

        final Torus torus = new Torus("Torus", 50, 50, 10, 25);
        torus.updateModelBound();
        torus.setRenderState(ts);

        final Quad quad = new Quad("Quad");
        quad.resize(150, 120);
        quad.updateModelBound();
View Full Code Here

Examples of com.jme.scene.Geometry.updateModelBound()

            }
        }
        Geometry regularGrid = new Line("regularLine", regularVertices.toArray(new Vector3f[] {}), null, null, null);
        regularGrid.getDefaultColor().set(new ColorRGBA(1, 1, 1, 0.05f));
        regularGrid.setModelBound(new BoundingBox());
        regularGrid.updateModelBound();
        lines.attachChild(regularGrid);
        Geometry markerGrid = new Line("markerLine", markerVertices.toArray(new Vector3f[] {}), null, null, null);
        markerGrid.getDefaultColor().set(new ColorRGBA(1, 1, 1, 0.1f));
        markerGrid.setModelBound(new BoundingBox());
        markerGrid.updateModelBound();
View Full Code Here

Examples of com.jme.scene.Geometry.updateModelBound()

        regularGrid.updateModelBound();
        lines.attachChild(regularGrid);
        Geometry markerGrid = new Line("markerLine", markerVertices.toArray(new Vector3f[] {}), null, null, null);
        markerGrid.getDefaultColor().set(new ColorRGBA(1, 1, 1, 0.1f));
        markerGrid.setModelBound(new BoundingBox());
        markerGrid.updateModelBound();
        lines.attachChild(markerGrid);
        if (rotation != null) lines.getLocalRotation().fromAngles(rotation.x, rotation.y, rotation.z);

        Node axis = new Node("axis");
        this.attachChild(axis);
View Full Code Here

Examples of com.jme.scene.Line.updateModelBound()

            }
        }
        Geometry regularGrid = new Line("regularLine", regularVertices.toArray(new Vector3f[] {}), null, null, null);
        regularGrid.getDefaultColor().set(new ColorRGBA(1, 1, 1, 0.05f));
        regularGrid.setModelBound(new BoundingBox());
        regularGrid.updateModelBound();
        lines.attachChild(regularGrid);
        Geometry markerGrid = new Line("markerLine", markerVertices.toArray(new Vector3f[] {}), null, null, null);
        markerGrid.getDefaultColor().set(new ColorRGBA(1, 1, 1, 0.1f));
        markerGrid.setModelBound(new BoundingBox());
        markerGrid.updateModelBound();
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.