|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SubdivisionButterfly.VertexType>
com.jmex.subdivision.SubdivisionButterfly.VertexType
public static enum SubdivisionButterfly.VertexType
Helper class to calculate which Rule
to use
when splitting an Edge
whose vertices have
Location
and Valence
Call: VertexType.getRule(valence1, location1, valence2, location2);
Enum Constant Summary | |
---|---|
EXTRAORDINARY_CREASE
|
|
EXTRAORDINARY_INTERIOR
|
|
REGULAR_CREASE
|
|
REGULAR_INTERIOR
|
Method Summary | |
---|---|
static SubdivisionButterfly.Rule |
getRule(SubdivisionButterfly.Valence valence1,
SubdivisionButterfly.Location location1,
SubdivisionButterfly.Valence valence2,
SubdivisionButterfly.Location location2)
Calculates which subdivision Rule to use on an edge whose vertices have the provided Locations and Valances |
static boolean |
isSame(SubdivisionButterfly.VertexType type1,
SubdivisionButterfly.VertexType type2,
SubdivisionButterfly.VertexType comp1,
SubdivisionButterfly.VertexType comp2)
Compares the permutations of the types |
static SubdivisionButterfly.VertexType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SubdivisionButterfly.VertexType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
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 |
Enum Constant Detail |
---|
public static final SubdivisionButterfly.VertexType REGULAR_INTERIOR
public static final SubdivisionButterfly.VertexType REGULAR_CREASE
public static final SubdivisionButterfly.VertexType EXTRAORDINARY_INTERIOR
public static final SubdivisionButterfly.VertexType EXTRAORDINARY_CREASE
Method Detail |
---|
public static SubdivisionButterfly.VertexType[] values()
for (SubdivisionButterfly.VertexType c : SubdivisionButterfly.VertexType.values()) System.out.println(c);
public static SubdivisionButterfly.VertexType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static SubdivisionButterfly.Rule getRule(SubdivisionButterfly.Valence valence1, SubdivisionButterfly.Location location1, SubdivisionButterfly.Valence valence2, SubdivisionButterfly.Location location2)
valence1
- location1
- valence2
- location2
-
public static boolean isSame(SubdivisionButterfly.VertexType type1, SubdivisionButterfly.VertexType type2, SubdivisionButterfly.VertexType comp1, SubdivisionButterfly.VertexType comp2)
type1
- type2
- comp1
- comp2
-
true
if they are equivalent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |