Examples of Cylinder


Examples of com.jme3.scene.shape.Cylinder

    }

    private Node createActuatorAssmNode(String name) {
        Node actuator = new Node(name);

        Geometry actuatorBody = new Geometry("body", new Cylinder(12, 12, 4, 25, true));
        actuatorBody.setMaterial(brushedAluminumTexture);
        actuatorBody.rotate((float) Math.PI / 2, 0f, 0f);
        actuator.attachChild(actuatorBody);

        Geometry actuatorPin = new Geometry("pin", new Cylinder(12, 12, 0.5f, 25, true));
        actuatorPin.rotate((float) Math.PI / 2, 0f, 0f);
        actuatorPin.setMaterial(polishedStainlessTexture);
        actuator.attachChild(actuatorPin);

        return actuator;
View Full Code Here

Examples of com.jme3.scene.shape.Cylinder

        Geometry body = new Geometry("body", new Box(15 / 2, 25 / 2, 15 / 2));
        body.setMaterial(blackAluminumTexture);
        nozzle.attachChild(body);
       
        Geometry tip = new Geometry("tip", new Cylinder(12, 12, 0.5f, 10, true));
        tip.setMaterial(polishedStainlessTexture);
        tip.rotate((float) Math.PI / 2, 0f, 0f);
        tip.move(0, -15, 0);
        nozzle.attachChild(tip);
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Cylinder

        int genFlag=Primitive.GENERATE_NORMALS|Primitive.GENERATE_TEXTURE_COORDS|Primitive.GEOMETRY_NOT_SHARED|Primitive.ENABLE_GEOMETRY_PICKING;
        if(_primitiveClass==Sphere.class){
            _result=new Sphere(_radius, genFlag , _divisions);
        }
        else if(_primitiveClass==Cylinder.class){
            _result=new Cylinder(_radius, _height, genFlag,
                    _divisions, _heightDivisions, null);
        }
        else if(_primitiveClass==Cone.class){
            _result=new Cone(_radius, _height, genFlag,
                    _divisions, _heightDivisions, null);
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Cylinder

        base.setTransparencyAttributes(ta);
        TransparencyInterpolator ti = new TransparencyInterpolator(C.halfAlpha, ta, alpha, .97f);
        ti.setSchedulingBounds(BoardModel.bounds);
        addChild(ti);

        Cylinder link = new Cylinder(1.5f, (float)source.distance(destination));
        link.setAppearance(base);

        Vector3d destination0 = new Vector3d(destination);
        destination0.negate();
        destination0.add(source);
        Vector3d diff = new Vector3d(destination0);
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Cylinder

                                               specularColourCylinder,
                                               shininessCylinder));


    //Generate the cylinder.
    Cylinder cyli = new Cylinder(0.1f,0.3f,yellowCylinderApp);

    //The CollisionBounds for the cylinder.
    cyli.setCollisionBounds(new BoundingBox(new Point3d(0.0,-0.15,0.0),
                                            new Point3d(0.1,0.15,0.1)));
    cyli.setCollidable(true);

    //Position the cylinder and assign it to a transformation group.
    Transform3D tfCylinder = new Transform3D();
    tfCylinder.mul(rotationX);
    Transform3D positionCyl = new Transform3D();
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Cylinder

    //Height of the tree trunk.
    float trunkHeight = 0.4f;

    //Generate the tree trunk as a cylinder.
    Cylinder trunk = new Cylinder(0.05f,trunkHeight,brownApp);

    //The transformation group of the tree trunk. The tree trunk first
    //remains in the origin and is placed in the scene together with the
    //leaves.
    TransformGroup tgTrunk = new TransformGroup();
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Cylinder

    //Height of the tree trunk.
    float trunkHeight = 0.4f;

    //Generate the tree trunk as a cylinder.
    Cylinder trunk = new Cylinder(0.05f,trunkHeight,brownApp);

    //The transformation group of the tree trunk. The tree trunk first
    //remains in the origin and is placed in the scene together with the
    //leaves.
    TransformGroup tgTrunk = new TransformGroup();
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Cylinder

    //Height of the tree trunk.
    float trunkHeight = 0.4f;

    //Generate the tree trunk as a cylinder.
    Cylinder trunk = new Cylinder(0.05f,trunkHeight,brownApp);

    //The transformation group of the tree trunk. The tree trunk first
    //remains in the origin and is placed in the scene together with the
    //leaves.
    TransformGroup tgTrunk = new TransformGroup();
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Cylinder

    //Height of the tree trunk.
    float trunkHeight = 0.4f;

    //Generate the tree trunk as a cylinder.
    Cylinder trunk = new Cylinder(0.05f,trunkHeight,brownApp);

    //The transformation group of the tree trunk. The tree trunk first
    //remains in the origin and is placed in the scene together with the
    //leaves.
    TransformGroup tgTrunk = new TransformGroup();
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Cylinder

    //Height of the tree trunk.
    float trunkHeight = 0.4f;

    //Generate the tree trunk as a cylinder.
    Cylinder trunk = new Cylinder(0.05f,trunkHeight,blackApp);

    //The transformation group of the tree trunk. The tree trunk first
    //remains in the origin and is placed in the scene together with the
    //leaves.
    TransformGroup tgTrunk = new TransformGroup();
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.