Examples of Cone


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

                .doubleValue();
        float radiusValue = (float) ((DoubleToken) radius.getToken())
                .doubleValue();

        if (_changesAllowedNow) {
            Cone cone = new Cone(1.0f, 1.0f, primitiveFlags,
                    circleDivisionsValue, sideDivisionsValue, _appearance);

            TransformGroup scaler = new TransformGroup();
            scaler.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
            _scaleTransform = new Transform3D();
            _scaleTransform.setScale(new Vector3d(radiusValue, heightValue,
                    radiusValue));
            scaler.setTransform(_scaleTransform);
            scaler.addChild(cone);
            _containedNode = scaler;
        } else {
            _containedNode = new Cone(radiusValue, heightValue, primitiveFlags,
                    circleDivisionsValue, sideDivisionsValue, _appearance);
            _scaleTransform = null;
        }
    }
View Full Code Here

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

    // Material mat = new Material();
    // appear.setMaterial(mat);

    final AntiAliased<Box> achse = new AntiAliased<Box>(new Box(Achse.WIDTH,
        Achse.LENGTH, Achse.WIDTH, this.appear));
    final AntiAliased<Cone> spitze = new AntiAliased<Cone>(new Cone(
        Achse.WIDTH * 2, Achse.WIDTH * 2, this.appear));

    final Transform3D transform3d = new Transform3D();
    if (aling == Achse.ALING_X)
      transform3d.rotZ(-Math.PI / 2);
View Full Code Here

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

/* 110 */     super.buildGraph();
/*     */   }
/*     */
/*     */   public SceneGraphObject createNode(Class j3dClass)
/*     */   {
/* 116 */     Cone cone = (Cone)createNode(j3dClass, new Class[] { Float.TYPE, Float.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE, Appearance.class }, new Object[] { new Float(this.radius), new Float(this.height), new Integer(this.primflags), new Integer(this.xdivision), new Integer(this.ydivision), null });
/*     */
/* 131 */     return cone;
/*     */   }
View Full Code Here

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

/*     */
/* 131 */     return cone;
/*     */   }
/*     */
/*     */   protected SceneGraphObject createNode() {
/* 135 */     return new Cone(this.radius, this.height, this.primflags, this.xdivision, this.ydivision, null);
/*     */   }
View Full Code Here

Examples of jray.common.Cone

      double ld = 0.2;
     
      int leafColor = IntColors.A+(((int)(IntColors.G*(0.5 + 0.5*Math.random())))&IntColors.G);
     
      if(Math.random()<0.5){
        objects.add(new Cone(new Vect3(x,y+2,z),new Vect3(t0,-1.6,t1),10,leafColor));
        objects.add(new Cone(new Vect3(x,y+2,z),new Vect3(t0*2,-2,t1*2),1,0xFF8B4513));
      }else{
        objects.add(new Sphere(new Vect3(x,y+1.5-ld/2,z),ld,leafColor));
        objects.add(new Cone(new Vect3(x,y+1.5,z),new Vect3(t0*2,-1.5,t1*2),1,0xFF8B4513));
      }
    }
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.