public class Square extends Abstract2dModel
| Modifier and Type | Field and Description |
|---|---|
protected Dims2d |
size |
move| Modifier | Constructor and Description |
|---|---|
protected |
Square(Coords2d move,
Dims2d size) |
|
Square(Dims2d size)
Creates a square with the given size values.
|
| Modifier and Type | Method and Description |
|---|---|
protected Collection<Area2d> |
getInnerPointCircle(FacetGenerationContext context) |
protected Boundaries2d |
getModelBoundaries() |
protected SCAD |
innerToScad(IColorGenerationContext context)
Generates the OpenSCAD representation of the model without.
|
Abstract2dModel |
move(Coords2d delta)
Moves this object by the given coordinates.
|
getBoundaries2d, getPointCircle, toScadprotected final Dims2d size
public Square(Dims2d size)
size - the 2D size value used to construct the squareprotected SCAD innerToScad(IColorGenerationContext context)
Abstract2dModelinnerToScad in class Abstract2dModelprotected Boundaries2d getModelBoundaries()
getModelBoundaries in class Abstract2dModelpublic Abstract2dModel move(Coords2d delta)
Abstract2dModelmove in class Abstract2dModeldelta - the coordinates used by the moveprotected Collection<Area2d> getInnerPointCircle(FacetGenerationContext context)
getInnerPointCircle in class Abstract2dModelCopyright © 2014–2020, Printing in 3D. All rights reserved.