Tabnine Logo
JavaFXMultiColorMeshBuilder.addCube
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: us.ihmc/IHMCJavaFXToolkit

meshBuilder.addCube(0.05f, pointsOffset, color);
Box box = new Box(0.025f, 0.025f, 0.025f);
box.setTranslateX(pointsOffset.getX());
origin: us.ihmc/robot-environment-awareness-visualizers

  colorMeshBuilder.addCube(0.01, intersections.get(index), Color.FIREBRICK);
colorMeshBuilder.addCube(0.02, pointOnPlane, Color.SLATEGREY);
box = new Box(lx, ly, lz);
box.setTranslateX(cubeCenter.getX());
origin: us.ihmc/robot-environment-awareness

private void addNodeMesh(JavaFXMultiColorMeshBuilder meshBuilder, DisplayType displayType, ColoringType coloringType, UIOcTreeNode node)
{
 Color color = getNodeColor(coloringType, node);
 double size = node.getSize();
 switch (displayType)
 {
 case CELL:
   meshBuilder.addCube(size, node.getX(), node.getY(), node.getZ(), color);
   break;
 case PLANE:
   if (node.isNormalSet())
    meshBuilder.addMesh(createNormalBasedPlane(node), color);
   break;
 case HIT_LOCATION:
   if (node.isHitLocationSet())
   {
    Point3D hitLocation = new Point3D();
    node.getHitLocation(hitLocation);
    meshBuilder.addTetrahedron(0.0075, hitLocation, color);
   }
   break;
 default:
   throw new RuntimeException("Unexpected value for display type: " + displayType);
 }      
}
origin: us.ihmc/robot-environment-awareness-visualizers

  occupiedMeshBuilder.addPolyon(plane, normalBasedColor);
  if (SHOW_HIT_LOCATIONS)
   occupiedMeshBuilder.addCube(0.01, pointOnPlane, DEFAULT_COLOR);
  occupiedMeshBuilder.addCube((float) boxSize, new Point3D32(nodeCenter), normalBasedColor);
freeMeshBuilder.addCube((float) boxSize, new Point3D32(nodeCenter));
origin: us.ihmc/robot-environment-awareness-visualizers

occupiedMeshBuilder.addCube((float) boxSize, new Point3D32(nodeCenter), normalBasedColor);
us.ihmc.javaFXToolkit.shapesJavaFXMultiColorMeshBuilderaddCube

Javadoc

Add a cube to this builder.

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.
  • addCone
    Add a cone to this builder. Its axis is aligned with the z-axis and its top is the vertex with the h
  • 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

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • ImageIO (javax.imageio)
  • Notification (javax.management)
  • JTable (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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