congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
JavaFXMultiColorMeshBuilder.addCone
Code IndexAdd Tabnine to your IDE (free)

How to use
addCone
method
in
us.ihmc.javaFXToolkit.shapes.JavaFXMultiColorMeshBuilder

Best Java code snippets using us.ihmc.javaFXToolkit.shapes.JavaFXMultiColorMeshBuilder.addCone (Showing top 3 results out of 315)

origin: us.ihmc/IHMCJavaFXToolkit

  public JavaFXCoordinateSystem(double length)
  {
   TextureColorPalette1D colorPalette = new TextureColorPalette1D();
   colorPalette.setHueBased(1.0, 1.0);
   JavaFXMultiColorMeshBuilder meshBuilder = new JavaFXMultiColorMeshBuilder(colorPalette);
   double radius = 0.02 * length;
   double coneHeight = 0.10 * length;
   double coneRadius = 0.05 * length;
   meshBuilder.addCylinder(length, radius, new Point3d(), new AxisAngle4d(0.0, 1.0, 0.0, Math.PI / 2.0), Color.RED);
   meshBuilder.addCone(coneHeight, coneRadius, new Point3d(length, 0.0, 0.0), new AxisAngle4d(0.0, 1.0, 0.0, Math.PI / 2.0), Color.RED);
   meshBuilder.addCylinder(length, radius, new Point3d(), new AxisAngle4d(1.0, 0.0, 0.0, -Math.PI / 2.0), Color.GREEN);
   meshBuilder.addCone(coneHeight, coneRadius, new Point3d(0.0, length, 0.0), new AxisAngle4d(1.0, 0.0, 0.0, -Math.PI / 2.0), Color.GREEN);
   meshBuilder.addCylinder(length, radius, new Point3d(), Color.BLUE);
   meshBuilder.addCone(coneHeight, coneRadius, new Point3d(0.0, 0.0, length), Color.BLUE);

   MeshView coordinateSystem = new MeshView(meshBuilder.generateMesh());
   coordinateSystem.setMaterial(meshBuilder.generateMaterial());
   getChildren().addAll(coordinateSystem);
  }
}
origin: us.ihmc/ihmc-javafx-toolkit

  public JavaFXCoordinateSystem(double length)
  {
   TextureColorPalette1D colorPalette = new TextureColorPalette1D();
   colorPalette.setHueBased(1.0, 1.0);
   JavaFXMultiColorMeshBuilder meshBuilder = new JavaFXMultiColorMeshBuilder(colorPalette);
   double radius = 0.02 * length;
   double coneHeight = 0.10 * length;
   double coneRadius = 0.05 * length;
   meshBuilder.addCylinder(length, radius, new Point3D(), new AxisAngle(0.0, 1.0, 0.0, Math.PI / 2.0), Color.RED);
   meshBuilder.addCone(coneHeight, coneRadius, new Point3D(length, 0.0, 0.0), new AxisAngle(0.0, 1.0, 0.0, Math.PI / 2.0), Color.RED);
   meshBuilder.addCylinder(length, radius, new Point3D(), new AxisAngle(1.0, 0.0, 0.0, -Math.PI / 2.0), Color.GREEN);
   meshBuilder.addCone(coneHeight, coneRadius, new Point3D(0.0, length, 0.0), new AxisAngle(1.0, 0.0, 0.0, -Math.PI / 2.0), Color.GREEN);
   meshBuilder.addCylinder(length, radius, new Point3D(), Color.BLUE);
   meshBuilder.addCone(coneHeight, coneRadius, new Point3D(0.0, 0.0, length), Color.BLUE);

   MeshView coordinateSystem = new MeshView(meshBuilder.generateMesh());
   coordinateSystem.setMaterial(meshBuilder.generateMaterial());
   getChildren().addAll(coordinateSystem);
  }
}
origin: us.ihmc/ihmc-footstep-planning-visualizers

public ArrowGraphic(double radius, double length, Color color)
{
  TextureColorPalette1D colorPalette = new TextureColorPalette1D();
  colorPalette.setHueBased(1.0, 1.0);
  JavaFXMultiColorMeshBuilder meshBuilder = new JavaFXMultiColorMeshBuilder(colorPalette);
  double coneHeight = 0.10 * length;
  double coneRadius = 1.5 * radius;
  meshBuilder.addCylinder(length, radius, new Point3D(), new AxisAngle(0.0, 1.0, 0.0, Math.PI / 2.0), color);
  meshBuilder.addCone(coneHeight, coneRadius, new Point3D(length, 0.0, 0.0), new AxisAngle(0.0, 1.0, 0.0, Math.PI / 2.0), color);
  this.arrow = new MeshView(meshBuilder.generateMesh());
  arrow.setMaterial(meshBuilder.generateMaterial());
  getChildren().add(arrow);
}
us.ihmc.javaFXToolkit.shapesJavaFXMultiColorMeshBuilderaddCone

Javadoc

Add a cone to this builder. Its axis is aligned with the z-axis and its top is the vertex with the highest z value.

Popular methods of JavaFXMultiColorMeshBuilder

  • <init>
    Creates an empty mesh builder given a texture color palette to use.
  • generateMaterial
  • generateMesh
  • addLine
    Add a 3D line to this builder.
  • addMesh
    Rotates, translates, then combines the given mesh with the mesh contained in this builder.
  • addMultiLine
    Add a series of connected 3D lines to this builder.
  • clear
    Clears the meshes contained in this builder.
  • addCube
    Add a cube to this builder.
  • addCylinder
    Add a cylinder to this builder. Its axis is aligned with the z-axis in its local coordinate system.
  • addPolygon
    Add a 2D polygon to this builder.
  • addBox
    Add a box to this builder.
  • setColor
  • addBox,
  • setColor,
  • addPolyon,
  • addTetrahedron

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • String (java.lang)
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now