com.jmex.subdivision
Enum SubdivisionButterfly.Valence
java.lang.Object
java.lang.Enum<SubdivisionButterfly.Valence>
com.jmex.subdivision.SubdivisionButterfly.Valence
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<SubdivisionButterfly.Valence>
- Enclosing class:
- SubdivisionButterfly
public static enum SubdivisionButterfly.Valence
- extends java.lang.Enum<SubdivisionButterfly.Valence>
Regular: Valence==6 for interior vertices, Valence==4 for boundary/crease vertices
Extraordinary: Everything else
- Author:
- Tobias
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
REGULAR
public static final SubdivisionButterfly.Valence REGULAR
EXTRAORDINARY
public static final SubdivisionButterfly.Valence EXTRAORDINARY
values
public static SubdivisionButterfly.Valence[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SubdivisionButterfly.Valence c : SubdivisionButterfly.Valence.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SubdivisionButterfly.Valence valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getValence
public static SubdivisionButterfly.Valence getValence(SubdivisionButterfly.Location location,
int valence)
- Calculates whether a vertex is REGULAR or EXTRAORDINARY, given the Location and valence(degree) of the vertex
- Parameters:
location
- valence
-
- Returns:
Valence.REGULAR
or Valence.EXTRAORDINARY