/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }