public enum VertexPosition extends Enum<VertexPosition>
Enum Constant and Description |
---|
BACK
The vertex is behind the plane.
|
COPLANAR
The vertex is on the plane.
|
FRONT
The vertex is in front of the plane.
|
SPANNING
This is denotes the case when there are vertexes both in front and behind the plane.
|
Modifier and Type | Method and Description |
---|---|
VertexPosition |
add(VertexPosition v)
This method helps to calculate the position of the polygon by adding two vertex position enum and
calculating the result of the two position.
|
static VertexPosition |
fromSquareDistance(double dist)
Determine the vertex position based on the squared distance from the plane.
|
static VertexPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VertexPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VertexPosition COPLANAR
public static final VertexPosition FRONT
public static final VertexPosition BACK
public static final VertexPosition SPANNING
public static VertexPosition[] values()
for (VertexPosition c : VertexPosition.values()) System.out.println(c);
public static VertexPosition valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic VertexPosition add(VertexPosition v)
This method helps to calculate the position of the polygon by adding two vertex position enum and calculating the result of the two position.
This operation is commutative, so a.add(b)
gives always the same result as
b.add(a)
.
v
- the vertex position to addpublic static VertexPosition fromSquareDistance(double dist)
dist
- the square distance from the planeCopyright © 2014–2020, Printing in 3D. All rights reserved.