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, toScad
public 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)
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.