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

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

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

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);
 }      
}
us.ihmc.javaFXToolkit.shapesJavaFXMultiColorMeshBuilderaddTetrahedron

Javadoc

Add a regular tetrahedron 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
  • 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.
  • addPolygon,
  • addBox,
  • setColor,
  • addPolyon

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JTable (javax.swing)
  • Top Sublime Text plugins
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