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

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

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

origin: us.ihmc/ihmc-javafx-toolkit

/**
* 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.
* @param height height along z of the cone.
* @param radius radius of the cone's base.
* @param offset coordinate of the cone's base center. Not modified.
* @param color color of the cone. Color accuracy depends on the color palette in use.
*/
public void addCone(double height, double radius, Tuple3DReadOnly offset, Color color)
{
 addMesh(MeshDataGenerator.Cone(height, radius, DEFAULT_RES), offset, color);
}
origin: us.ihmc/IHMCJavaFXToolkit

/**
* Add a box centered at (0, 0, 0) to this builder.
* @param lx box length along the x-axis.
* @param ly box length along the y-axis.
* @param lz box length along the z-axis.
* @param color color of the box. Color accuracy depends on the color palette in use.
*/
public void addBox(float lx, float ly, float lz, Color color)
{
 addMesh(MeshDataGenerator.Cube(lx, ly, lz, true, null), color);
}
origin: us.ihmc/IHMCJavaFXToolkit

/**
* Add a regular tetrahedron to this builder.
* @param edgeLength edge length of the tetrahedron.
* @param offset coordinates of the center of the tetrahedron's circumscribed sphere. Not modified.
* @param color color of the tetrahedron. Color accuracy depends on the color palette in use.
*/
public void addTetrahedron(float edgeLength, Tuple3f offset, Color color)
{
 addMesh(MeshDataGenerator.Tetrahedron(edgeLength), offset, color);
}
origin: us.ihmc/ihmc-javafx-toolkit

/**
* Add a box to this builder.
* @param lx box length along the x-axis.
* @param ly box length along the y-axis.
* @param lz box length along the z-axis.
* @param offset coordinate of the box center. Not modified.
* @param color color of the box. Color accuracy depends on the color palette in use.
*/
public void addBox(float lx, float ly, float lz, Tuple3DReadOnly offset, Color color)
{
 addMesh(MeshDataGenerator.Cube(lx, ly, lz, true, null), offset, color);
}
origin: us.ihmc/ihmc-javafx-toolkit

/**
* Add a cylinder to this builder. Its axis is aligned with the z-axis.
* @param height height along z of the cylinder.
* @param radius the cylinder's radius.
* @param offset coordinates of the cylinder's center. Not modified.
* @param color color of the cylinder. Color accuracy depends on the color palette in use.
*/
public void addCylinder(double height, double radius, Tuple3DReadOnly offset, Color color)
{
 addMesh(MeshDataGenerator.Cylinder(radius, height, DEFAULT_RES), offset, color);
}
origin: us.ihmc/ihmc-javafx-toolkit

/**
* Add a regular tetrahedron to this builder.
* @param edgeLength edge length of the tetrahedron.
* @param offset coordinates of the center of the tetrahedron's circumscribed sphere. Not modified.
* @param color color of the tetrahedron. Color accuracy depends on the color palette in use.
*/
public void addTetrahedron(float edgeLength, Tuple3DReadOnly offset, Color color)
{
 addMesh(MeshDataGenerator.Tetrahedron(edgeLength), offset, color);
}
origin: us.ihmc/IHMCJavaFXToolkit

/**
* Add a 2D polygon to this builder. 
* @param transformToWorld the transform from the polygon's local coordinates to world. Not modified.
* @param polygon the polygon to render.
* @param color color of the polygon. Color accuracy depends on the color palette in use.
*/
public void addPolygon(RigidBodyTransform transformToWorld, ConvexPolygon2d polygon, Color color)
{
 addMesh(MeshDataGenerator.Polygon(transformToWorld, polygon), color);
}
origin: us.ihmc/IHMCJavaFXToolkit

/**
* Add a sphere centered to this builder.
* @param radius the sphere radius.
* @param offset the coordinate of the sphere. Not modified.
* @param color color of the sphere. Color accuracy depends on the color palette in use.
*/
public void addSphere(float radius, Tuple3f offset, Color color)
{
 addMesh(MeshDataGenerator.Sphere(radius, DEFAULT_RES, DEFAULT_RES), offset, color);
}
origin: us.ihmc/ihmc-javafx-toolkit

/**
* Add a cylinder to this builder. Its axis is aligned with the z-axis in its local coordinate system.
* @param height height along z of the cylinder.
* @param radius the cylinder's radius.
* @param offset coordinates of the cylinder's center. Not modified.
* @param orientation axis-angle describing the cylinder orientation with respect to world. Not modified.
* @param color color of the cylinder. Color accuracy depends on the color palette in use.
*/
public void addCylinder(double height, double radius, Tuple3DReadOnly offset, AxisAngle orientation, Color color)
{
 addMesh(MeshDataGenerator.Cylinder(radius, height, DEFAULT_RES), offset, orientation, color);
}
origin: us.ihmc/IHMCJavaFXToolkit

/**
* 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 in its local coordinate system.
* @param height height along z of the cone.
* @param radius radius of the cone's base.
* @param offset coordinate of the cone's base center. Not modified.
* @param orientation axis-angle describing the cone orientation with respect to world. Not modified.
* @param color color of the cone. Color accuracy depends on the color palette in use.
*/
public void addCone(double height, double radius, Tuple3d offset, AxisAngle4d orientation, Color color)
{
 addMesh(MeshDataGenerator.Cone(height, radius, DEFAULT_RES), offset, orientation, color);
}
origin: us.ihmc/IHMCJavaFXToolkit

/**
* Add a sphere centered at (0, 0, 0) to this builder.
* @param radius the sphere radius.
* @param color color of the sphere. Color accuracy depends on the color palette in use.
*/
public void addSphere(float radius, Color color)
{
 addMesh(MeshDataGenerator.Sphere(radius, DEFAULT_RES, DEFAULT_RES), color);
}
origin: us.ihmc/IHMCJavaFXToolkit

/**
* Add a regular tetrahedron to this builder.
* @param edgeLength edge length of the tetrahedron.
* @param offset coordinates of the center of the tetrahedron's circumscribed sphere. Not modified.
* @param color color of the tetrahedron. Color accuracy depends on the color palette in use.
*/
public void addTetrahedron(double edgeLength, Tuple3d offset, Color color)
{
 addMesh(MeshDataGenerator.Tetrahedron(edgeLength), offset, color);
}
origin: us.ihmc/ihmc-javafx-toolkit

/**
* Add a box to this builder.
* @param lx box length along the x-axis.
* @param ly box length along the y-axis.
* @param lz box length along the z-axis.
* @param offset coordinate of the box center. Not modified.
* @param color color of the box. Color accuracy depends on the color palette in use.
*/
public void addBox(double lx, double ly, double lz, Tuple3DReadOnly offset, Color color)
{
 addMesh(MeshDataGenerator.Cube(lx, ly, lz, true, null), offset, color);
}
origin: us.ihmc/ihmc-javafx-toolkit

/**
* Add a box centered at (0, 0, 0) to this builder.
* @param lx box length along the x-axis.
* @param ly box length along the y-axis.
* @param lz box length along the z-axis.
* @param color color of the box. Color accuracy depends on the color palette in use.
*/
public void addBox(float lx, float ly, float lz, Color color)
{
 addMesh(MeshDataGenerator.Cube(lx, ly, lz, true, null), color);
}
origin: us.ihmc/ihmc-javafx-toolkit

/**
* Add a sphere centered to this builder.
* @param radius the sphere radius.
* @param offset the coordinate of the sphere. Not modified.
* @param color color of the sphere. Color accuracy depends on the color palette in use.
*/
public void addSphere(double radius, Tuple3DReadOnly offset, Color color)
{
 addMesh(MeshDataGenerator.Sphere(radius, DEFAULT_RES, DEFAULT_RES), offset, color);
}
origin: us.ihmc/ihmc-javafx-toolkit

/**
* Add a sphere centered at (0, 0, 0) to this builder.
* @param radius the sphere radius.
* @param color color of the sphere. Color accuracy depends on the color palette in use.
*/
public void addSphere(float radius, Color color)
{
 addMesh(MeshDataGenerator.Sphere(radius, DEFAULT_RES, DEFAULT_RES), color);
}
origin: us.ihmc/ihmc-javafx-toolkit

/**
* Add a sphere centered to this builder.
* @param radius the sphere radius.
* @param offset the coordinate of the sphere. Not modified.
* @param color color of the sphere. Color accuracy depends on the color palette in use.
*/
public void addSphere(float radius, Tuple3DReadOnly offset, Color color)
{
 addMesh(MeshDataGenerator.Sphere(radius, DEFAULT_RES, DEFAULT_RES), offset, color);
}
origin: us.ihmc/ihmc-javafx-toolkit

/**
* Add a regular tetrahedron to this builder.
* @param edgeLength edge length of the tetrahedron.
* @param offset coordinates of the center of the tetrahedron's circumscribed sphere. Not modified.
* @param color color of the tetrahedron. Color accuracy depends on the color palette in use.
*/
public void addTetrahedron(double edgeLength, Tuple3DReadOnly offset, Color color)
{
 addMesh(MeshDataGenerator.Tetrahedron(edgeLength), offset, color);
}
origin: us.ihmc/IHMCJavaFXToolkit

/**
* Add a polygon to this builder.
* No sanity check is performed on the polygon's vertices.
* @param polygon the polygon 3D vertices.
* @param color color of the polygon. Color accuracy depends on the color palette in use.
*/
public void addPolyon(List<Point3d> polygon, Color color)
{
 addMesh(MeshDataGenerator.Polygon(polygon), color);
}
origin: us.ihmc/IHMCJavaFXToolkit

/**
* Add a sphere centered to this builder.
* @param radius the sphere radius.
* @param offset the coordinate of the sphere. Not modified.
* @param color color of the sphere. Color accuracy depends on the color palette in use.
*/
public void addSphere(double radius, Tuple3d offset, Color color)
{
 addMesh(MeshDataGenerator.Sphere(radius, DEFAULT_RES, DEFAULT_RES), offset, color);
}
us.ihmc.javaFXToolkit.shapesJavaFXMultiColorMeshBuilderaddMesh

Javadoc

Combines the given mesh with the mesh contained in this builder while specifying the color of the given mesh.

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.
  • 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.
  • setColor
  • addBox,
  • setColor,
  • addPolyon,
  • addTetrahedron

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • Path (java.nio.file)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Join (org.hibernate.mapping)
  • Table (org.hibernate.mapping)
    A relational table
  • Github Copilot alternatives
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