public class Side extends Object
#align(Side, eu.printingin3d.javascad.models.Abstract3dModel, boolean)
Abstract3dModel.align(Side, Abstract3dModel, boolean)
method to
set the side where the other model should be aligned.Modifier and Type | Field and Description |
---|---|
static Side |
BACK
|
static Side |
BACK_IN
The back side of the model inside.
|
static Side |
BACK_IN_CENTER
The inside back and center of the model.
|
static Side |
BACK_OUT
The back side of the model outside.
|
static Side |
BACK_OUT_CENTER
The outside back and center of the model.
|
static Side |
BOTTOM
Deprecated.
Use
BOTTOM_IN or BOTTOM_OUT instead. |
static Side |
BOTTOM_IN
The bottom of the model inside.
|
static Side |
BOTTOM_IN_CENTER
The inside bottom and center of the model.
|
static Side |
BOTTOM_OUT
The bottom of the model outside.
|
static Side |
BOTTOM_OUT_CENTER
The outside bottom and center of the model.
|
static Side |
CENTER
The center of the model.
|
static Side |
FRONT
|
static Side |
FRONT_IN
The front side of the model.
|
static Side |
FRONT_IN_CENTER
The inside front and center of the model.
|
static Side |
FRONT_OUT
The front side of the model.
|
static Side |
FRONT_OUT_CENTER
The outside front and center of the model.
|
static Side |
LEFT
|
static Side |
LEFT_IN
The left side of the model.
|
static Side |
LEFT_IN_CENTER
The inside left and center of the model.
|
static Side |
LEFT_OUT
The left side of the model.
|
static Side |
LEFT_OUT_CENTER
The outside left and center of the model.
|
static Side |
RIGHT
|
static Side |
RIGHT_IN
The right side of the model.
|
static Side |
RIGHT_IN_CENTER
The inside right and center of the model.
|
static Side |
RIGHT_OUT
The right side of the model.
|
static Side |
RIGHT_OUT_CENTER
The outside right and center of the model.
|
static Side |
TOP
|
static Side |
TOP_IN
The top of the model inside.
|
static Side |
TOP_IN_CENTER
The inside top and center of the model.
|
static Side |
TOP_OUT
The top of the model outside.
|
static Side |
TOP_OUT_CENTER
The outside top and center of the model.
|
Constructor and Description |
---|
Side(AlignType alignX,
AlignType alignY,
AlignType alignZ)
Constructs a side object with the given aligns on the X, Y and Z axis.
|
Modifier and Type | Method and Description |
---|---|
Coords3d |
calculateCoords(Boundaries3d model,
Boundaries3d relateTo)
This method is used internally by the
#align(Side, eu.printingin3d.javascad.models.Abstract3dModel, boolean)
Abstract3dModel.align(Side, Abstract3dModel, boolean) . |
Coords3d |
calculateCoords(Boundaries3d model,
Boundaries3d relateTo,
boolean inside)
Deprecated.
Use
calculateCoords(Boundaries3d, Boundaries3d) instead |
Coords3d |
calculateCoords(Boundaries3d model,
Coords3d relateTo)
This method is used internally by the
Abstract3dModel.align(Side, Coords3d) . |
AlignType |
getAlignX()
Returns with the alignment on the x axis.
|
AlignType |
getAlignY()
Returns with the alignment on the y axis.
|
AlignType |
getAlignZ()
Returns with the alignment on the z axis.
|
@Deprecated public static final Side TOP
This behaves exactly the same as TOP_OUT
for backward compatibility reasons.
public static final Side TOP_IN
public static final Side TOP_OUT
public static final Side TOP_IN_CENTER
public static final Side TOP_OUT_CENTER
@Deprecated public static final Side BOTTOM
BOTTOM_IN
or BOTTOM_OUT
instead.This behaves exactly the same as BOTTOM_OUT
for backward compatibility reasons.
public static final Side BOTTOM_IN
public static final Side BOTTOM_OUT
public static final Side BOTTOM_IN_CENTER
public static final Side BOTTOM_OUT_CENTER
@Deprecated public static final Side LEFT
This behaves exactly the same as LEFT_OUT
for backward compatibility reasons.
public static final Side LEFT_IN
public static final Side LEFT_OUT
public static final Side LEFT_IN_CENTER
public static final Side LEFT_OUT_CENTER
@Deprecated public static final Side RIGHT
This behaves exactly the same as RIGHT_OUT
for backward compatibility reasons.
public static final Side RIGHT_IN
public static final Side RIGHT_OUT
public static final Side RIGHT_IN_CENTER
public static final Side RIGHT_OUT_CENTER
@Deprecated public static final Side FRONT
This behaves exactly the same as FRONT_OUT
for backward compatibility reasons.
public static final Side FRONT_IN
public static final Side FRONT_OUT
public static final Side FRONT_IN_CENTER
public static final Side FRONT_OUT_CENTER
@Deprecated public static final Side BACK
This behaves exactly the same as BACK_OUT
for backward compatibility reasons.
public static final Side BACK_IN
public static final Side BACK_OUT
public static final Side BACK_IN_CENTER
public static final Side BACK_OUT_CENTER
public static final Side CENTER
@Deprecated public Coords3d calculateCoords(Boundaries3d model, Boundaries3d relateTo, boolean inside)
calculateCoords(Boundaries3d, Boundaries3d)
instead#align(Side, eu.printingin3d.javascad.models.Abstract3dModel, boolean)
Abstract3dModel.align(Side, Abstract3dModel, boolean)
.
It calculates the coordinates of the position the first model should be placed to be
in the desired position.model
- the model we want to moverelateTo
- the model we use as a referenceinside
- controls which side of the aligned model will be alignedpublic Coords3d calculateCoords(Boundaries3d model, Boundaries3d relateTo)
#align(Side, eu.printingin3d.javascad.models.Abstract3dModel, boolean)
Abstract3dModel.align(Side, Abstract3dModel, boolean)
.
It calculates the coordinates of the position the first model should be placed to be
in the desired position.model
- the model we want to moverelateTo
- the model we use as a referencepublic Coords3d calculateCoords(Boundaries3d model, Coords3d relateTo)
Abstract3dModel.align(Side, Coords3d)
.
It calculates the coordinates of the position the first model should be placed to be
in the desired position.model
- the model we want to moverelateTo
- the coordinate we use as a referencepublic AlignType getAlignX()
public AlignType getAlignY()
public AlignType getAlignZ()
Copyright © 2014–2020, Printing in 3D. All rights reserved.