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, toScad
protected final Dims2d size
public Square(Dims2d size)
size
- the 2D size value used to construct the squareprotected SCAD innerToScad(IColorGenerationContext context)
Abstract2dModel
innerToScad
in class Abstract2dModel
protected Boundaries2d getModelBoundaries()
getModelBoundaries
in class Abstract2dModel
public Abstract2dModel move(Coords2d delta)
Abstract2dModel
move
in class Abstract2dModel
delta
- the coordinates used by the moveprotected Collection<Area2d> getInnerPointCircle(FacetGenerationContext context)
getInnerPointCircle
in class Abstract2dModel
Copyright © 2014–2020, Printing in 3D. All rights reserved.