/** * Add a cube to this builder. * @param size edge length of the cube. * @param cubeOffset coordinates of the cube's center. Not modified. * @param color color of the cube. Color accuracy depends on the color palette in use. */ public void addCube(double size, Tuple3d pointsOffset, Color color) { addBox(size, size, size, pointsOffset, color); }
/** * Add a cube to this builder. * @param size edge length of the cube. * @param cubeOffset coordinates of the cube's center. Not modified. * @param color color of the cube. Color accuracy depends on the color palette in use. */ public void addCube(double size, Tuple3DReadOnly pointsOffset, Color color) { addBox(size, size, size, pointsOffset, color); }
/** * Add a cube to this builder. * @param size edge length of the cube. * @param cubeOffset coordinates of the cube's center. Not modified. * @param color color of the cube. Color accuracy depends on the color palette in use. */ public void addCube(float size, Tuple3DReadOnly pointsOffset, Color color) { addBox(size, size, size, pointsOffset, color); }
/** * Add a cube to this builder. * @param size edge length of the cube. * @param cubeOffset coordinates of the cube's center. Not modified. * @param color color of the cube. Color accuracy depends on the color palette in use. */ public void addCube(float size, Tuple3f pointsOffset, Color color) { addBox(size, size, size, pointsOffset, color); }
/** * Add a cube to this builder. * @param size edge length of the cube. * @param xOffset x-coordinate of the cube's center. * @param yOffset y-coordinate of the cube's center. * @param zOffset z-coordinate of the cube's center. * @param color color of the cube. Color accuracy depends on the color palette in use. */ public void addCube(double size, double xOffset, double yOffset, double zOffset, Color color) { addBox(size, size, size, new Point3d(xOffset, yOffset, zOffset), color); }
/** * Add a cube to this builder. * @param size edge length of the cube. * @param xOffset x-coordinate of the cube's center. * @param yOffset y-coordinate of the cube's center. * @param zOffset z-coordinate of the cube's center. * @param color color of the cube. Color accuracy depends on the color palette in use. */ public void addCube(double size, double xOffset, double yOffset, double zOffset, Color color) { addBox(size, size, size, new Point3D(xOffset, yOffset, zOffset), color); }