public class Colorize extends Complex3dModel
Constructor and Description |
---|
Colorize(Color color,
Abstract3dModel model)
Creates a Colorized object of the given object with the given color.
|
Modifier and Type | Method and Description |
---|---|
protected List<Abstract3dModel> |
getChildrenModels() |
protected Boundaries3d |
getModelBoundaries() |
static String |
getStringRepresentation(Color color)
Generates the SCAD representation of the given color.
|
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) |
isPrimitive
addModel, 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, withTag
public Colorize(Color color, Abstract3dModel model)
color
- the color which will be usedmodel
- the model which will be coloredIllegalValueException
- if either the model or the color nullprotected SCAD innerToScad(IColorGenerationContext context)
Abstract3dModel
innerToScad
in class Abstract3dModel
protected Abstract3dModel innerCloneModel()
innerCloneModel
in class Abstract3dModel
protected Boundaries3d getModelBoundaries()
getModelBoundaries
in class Abstract3dModel
protected CSG toInnerCSG(FacetGenerationContext context)
toInnerCSG
in class Abstract3dModel
public static String getStringRepresentation(Color color)
color
- the color to be convertedprotected Abstract3dModel innerSubModel(IScadGenerationContext context)
innerSubModel
in class Abstract3dModel
protected List<Abstract3dModel> getChildrenModels()
getChildrenModels
in class Abstract3dModel
Copyright © 2014–2020, Printing in 3D. All rights reserved.