public class Boundaries3d extends Object
Modifier and Type | Field and Description |
---|---|
static Boundaries3d |
EMPTY
Represents an empty 3D boundary object.
|
Constructor and Description |
---|
Boundaries3d(Boundary x,
Boundary y,
Boundary z)
Constructs a new object with the given X, Y and Z boundary.
|
Boundaries3d(Coords3d minCorner,
Coords3d maxCorner)
Constructs a new object with the given two corner.
|
Modifier and Type | Method and Description |
---|---|
Boundaries3d |
add(Boundaries3d delta)
Adds the interval with the given delta - this operation always increase the size of the boundaries.
|
static Boundaries3d |
combine(Collection<Boundaries3d> boundaries)
Calculate the including cuboid so the result of this method is an interval representing a cuboid
that all of the parameter cuboids are inside in this cuboid.
|
Coords3d |
getAlignedValue(Side side)
Returns with the coordinate of this boundary queried by the parameter.
|
Coords3d |
getMaxCorner()
Returns with the back-right-top corner's coordinates.
|
Coords3d |
getMinCorner()
Returns with the front-left-bottom corner's coordinates.
|
Dims3d |
getSize()
Returns with the size of this boundaries.
|
Boundary |
getX()
Returns with the boundary on the X plane.
|
Boundary |
getY()
Returns with the boundary on the Y plane.
|
Boundary |
getZ()
Returns with the boundary on the Z plane.
|
static Boundaries3d |
intersect(Collection<Boundaries3d> boundaries)
Calculate the inner cuboid so the result of this method is an interval representing a cuboid
that is inside all of the parameter cuboids.
|
Boundaries3d |
move(Coords3d delta)
Moves the interval with the given delta.
|
Boundaries3d |
rotate(Angles3d angle)
Rotates the interval with the given angle.
|
Boundaries3d |
scale(Coords3d delta)
Scales the interval with the given delta.
|
public static final Boundaries3d EMPTY
public Boundaries3d(Boundary x, Boundary y, Boundary z)
x
- the boundary on the X planey
- the boundary on the Y planez
- the boundary on the Z planepublic static Boundaries3d combine(Collection<Boundaries3d> boundaries)
boundaries
- the intervals considered during the calculationpublic static Boundaries3d intersect(Collection<Boundaries3d> boundaries) throws IllegalValueException
boundaries
- the intervals considered during the calculationIllegalValueException
- if the given boundaries have no common partpublic Boundary getX()
public Boundary getY()
public Boundary getZ()
public Dims3d getSize()
Dims3d
object which means
it can be used to create a cube with the same size as this model.public Coords3d getMinCorner()
public Coords3d getMaxCorner()
public Boundaries3d move(Coords3d delta)
delta
- the value used by the movepublic Boundaries3d add(Boundaries3d delta)
delta
- the value used by the add operationpublic Boundaries3d scale(Coords3d delta)
delta
- the value used by the scalepublic Boundaries3d rotate(Angles3d angle)
angle
- the value used by the rotationCopyright © 2014–2020, Printing in 3D. All rights reserved.