public abstract class Extendable3dModel extends Complex3dModel
Extendable model - use this as the base class for your own models.
To use it you have to set the value of the baseModel field in the constructor of your class.
And if there are more fields of your class other than the inherited baseModel than you have to implement
the innerSubModel method to make a copy of your model. Otherwise it is enough if your class has a
default constructor - the innerSubModel implementation of this class will handle
everything from there.
| Modifier and Type | Field and Description |
|---|---|
protected Abstract3dModel |
baseModel |
| Constructor and Description |
|---|
Extendable3dModel() |
| Modifier and Type | Method and Description |
|---|---|
protected List<Abstract3dModel> |
getChildrenModels() |
protected Boundaries3d |
getModelBoundaries() |
protected Abstract3dModel |
innerCloneModel() |
protected Abstract3dModel |
innerSubModel(IScadGenerationContext context) |
protected SCAD |
innerToScad(IColorGenerationContext context)
Generates the OpenSCAD representation of the model without.
|
protected CSG |
toInnerCSG(FacetGenerationContext context) |
isPrimitiveaddModel, 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, subtractModel, toCSG, toCSG, toScad, withTagprotected Abstract3dModel baseModel
protected Abstract3dModel innerCloneModel()
innerCloneModel in class Abstract3dModelprotected SCAD innerToScad(IColorGenerationContext context)
Abstract3dModelinnerToScad in class Abstract3dModelprotected Boundaries3d getModelBoundaries()
getModelBoundaries in class Abstract3dModelprotected CSG toInnerCSG(FacetGenerationContext context)
toInnerCSG in class Abstract3dModelprotected Abstract3dModel innerSubModel(IScadGenerationContext context)
innerSubModel in class Abstract3dModelprotected List<Abstract3dModel> getChildrenModels()
getChildrenModels in class Abstract3dModelCopyright © 2014–2020, Printing in 3D. All rights reserved.