public class Empty3dModel extends Atomic3dModel
Empty model - use this as the base class if you want to build a complex object.
Example:
Abstract3dModel result = new Empty3dModel(); if (isCrit1()) { result = result.addModel(addModel1()); } if (isCrit2()) { result = result.addModel(addModel2()); }
Constructor and Description |
---|
Empty3dModel() |
Modifier and Type | Method and Description |
---|---|
Abstract3dModel |
addModel(Abstract3dModel model)
Convenient method to create a Union.
|
protected Boundaries3d |
getModelBoundaries() |
protected Abstract3dModel |
innerCloneModel() |
protected SCAD |
innerToScad(IColorGenerationContext context)
Generates the OpenSCAD representation of the model without.
|
Abstract3dModel |
subtractModel(Abstract3dModel model)
Convenient method to create a Difference.
|
protected CSG |
toInnerCSG(FacetGenerationContext context) |
getChildrenModels, innerSubModel, isPrimitive
addModelTo, align, align, align, align, align, annotate, background, cloneModel, debug, findAnnotatedModel, getBoundaries, getTag, isBackground, isDebug, isMoved, isRotated, move, moves, moves, moves, moves, rotate, rotates, rotates, round, subModel, toCSG, toCSG, toScad, withTag
protected Abstract3dModel innerCloneModel()
innerCloneModel
in class Abstract3dModel
protected SCAD innerToScad(IColorGenerationContext context)
Abstract3dModel
innerToScad
in class Abstract3dModel
protected Boundaries3d getModelBoundaries()
getModelBoundaries
in class Abstract3dModel
protected CSG toInnerCSG(FacetGenerationContext context)
toInnerCSG
in class Abstract3dModel
public Abstract3dModel addModel(Abstract3dModel model)
Abstract3dModel
addModel
in class Abstract3dModel
model
- the model to be added to this objectpublic Abstract3dModel subtractModel(Abstract3dModel model)
Abstract3dModel
subtractModel
in class Abstract3dModel
model
- the model to be subtracted to this objectCopyright © 2014–2020, Printing in 3D. All rights reserved.