public class Translate extends Abstract2dModel
Abstract2dModel replace it most of the time.move| Constructor and Description |
|---|
Translate(Abstract2dModel model,
Coords2d move)
Creates a move operation.
|
| Modifier and Type | Method and Description |
|---|---|
protected Collection<Area2d> |
getInnerPointCircle(FacetGenerationContext context) |
protected Boundaries2d |
getModelBoundaries() |
static String |
getTranslate(Coords2d move)
This method is used internally by the
Abstract2dModel - do not use it! |
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, toScadpublic Translate(Abstract2dModel model, Coords2d move) throws IllegalValueException
model - the model to be movedmove - the coordinates used by the move operationIllegalValueException - if either of the two parameters is nullpublic static String getTranslate(Coords2d move)
Abstract2dModel - do not use it!move - the coordinates used by the move operationprotected 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.