Package com.ardor3d.scenegraph.shape

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


                break;
            default:
                // do nothing
                break;
        }
        handle.updateModelBound();
        withHandle(handle);
        return this;
    }

    public MovePlanarWidget withPlane(final MovePlane plane) {
View Full Code Here


        // Start with cylinder base:
        final Cylinder base = new Cylinder("base", 4, 16, _width * 0.75, _length - _lengthGap);
        base.getMeshData().translatePoints(0, 0, (_lengthGap + _length) * 0.5);
        attachChild(base);
        base.updateModelBound();

        // Add the pyramid tip.
        final double tipLength = _length / 2.0;
        final Pyramid tip = new Pyramid("tip", 2 * _width, tipLength);
        tip.getMeshData().translatePoints(0, _tipGap + _length + 0.5 * tipLength, 0);
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.