public class Cube extends Atomic3dModel
| Constructor and Description |
|---|
Cube(Dims3d size)
Creates a cuboid with the given size values.
|
Cube(double size)
Creates a cube with the given size.
|
| Modifier and Type | Method and Description |
|---|---|
static Abstract3dModel |
fromCoordinates(Coords3d minCorner,
Coords3d maxCorner)
Creates a cuboid with the given corners.
|
protected Boundaries3d |
getModelBoundaries() |
protected Abstract3dModel |
innerCloneModel() |
protected SCAD |
innerToScad(IColorGenerationContext context)
Generates the OpenSCAD representation of the model without.
|
protected CSG |
toInnerCSG(FacetGenerationContext context) |
getChildrenModels, innerSubModel, isPrimitiveaddModel, addModelTo, align, align, align, align, align, annotate, background, cloneModel, debug, findAnnotatedModel, getBoundaries, getTag, isBackground, isDebug, isMoved, isRotated, move, moves, moves, moves, moves, rotate, rotates, rotates, round, subModel, subtractModel, toCSG, toCSG, toScad, withTagpublic Cube(Dims3d size)
size - the 3D size value used to construct the cuboidpublic Cube(double size)
size - the size used to construct the cubepublic static Abstract3dModel fromCoordinates(Coords3d minCorner, Coords3d maxCorner)
minCorner - the corner with the lower coordinatesmaxCorner - the corner with the higher coordinatesIllegalValueException - the minCorner has bigger value
then maxCorner in any coordinate (x, y or z)protected SCAD innerToScad(IColorGenerationContext context)
Abstract3dModelinnerToScad in class Abstract3dModelprotected Boundaries3d getModelBoundaries()
getModelBoundaries in class Abstract3dModelprotected Abstract3dModel innerCloneModel()
innerCloneModel in class Abstract3dModelprotected CSG toInnerCSG(FacetGenerationContext context)
toInnerCSG in class Abstract3dModelCopyright © 2014–2020, Printing in 3D. All rights reserved.