public class Union extends Abstract2dModel
Represents an union of models. It is a descendant of Abstract2dModel
, which means you
can use the convenient methods on unions too.
You don't have to worry about the optimization either, because the generated OpenSCAD code will be the optimal one in every case. The parameters could even contain null elements, those will be ignored during the model generation.
The object doesn't have any list modification method and although it could work if the passed list is modified after the construction, the advised solution is to create the final list before creating this object.
move
Constructor and Description |
---|
Union(List<Abstract2dModel> models)
Instantiates a new Union object.
|
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
public Union(List<Abstract2dModel> models)
models
- the models this union holds.protected 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.