public final class ScadSurroundings extends Object
Modifier and Type | Field and Description |
---|---|
static ScadSurroundings |
EMPTY
An empty object to start from.
|
Modifier and Type | Method and Description |
---|---|
ScadSurroundings |
appendPostfix(String postfix)
Prepends the given text to the postfix in this object and returns with a new object representing the new
prefix and suffix.
|
ScadSurroundings |
appendPrefix(String prefix)
Appends the given text to the prefix in this object and returns with a new object representing the new
prefix and suffix.
|
ScadSurroundings |
include(ScadSurroundings inner)
Inserts the given surrounding inside of this object.
|
SCAD |
surroundScad(SCAD source)
Creates the full SCAD file by prepending the prefix and appending the postfix
in this object to the given SCAD output.
|
public static final ScadSurroundings EMPTY
public ScadSurroundings appendPrefix(String prefix)
prefix
- the text to be appended to the prefixpublic ScadSurroundings appendPostfix(String postfix)
postfix
- the text to be prepended to the postfixpublic ScadSurroundings include(ScadSurroundings inner)
inner
- the surroundings to be insertedCopyright © 2014–2020, Printing in 3D. All rights reserved.