org.smurn.jply.util
Enum NormalMode

java.lang.Object
  extended by java.lang.Enum<NormalMode>
      extended by org.smurn.jply.util.NormalMode
All Implemented Interfaces:
Serializable, Comparable<NormalMode>

public enum NormalMode
extends Enum<NormalMode>

Operation mode for normal vector generation by NormalizingPlyReader.


Enum Constant Summary
ADD_NORMALS_CCW
          Do not change existing normals, but generate normals if the file does not provide them.
ADD_NORMALS_CW
          Do not change existing normals, but generate normals if the file does not provide them.
PASS_THROUGH
          Do not change existing normals, nor add any if normals are missing in the file.
 
Method Summary
static NormalMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NormalMode[] 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

PASS_THROUGH

public static final NormalMode PASS_THROUGH
Do not change existing normals, nor add any if normals are missing in the file.


ADD_NORMALS_CCW

public static final NormalMode ADD_NORMALS_CCW
Do not change existing normals, but generate normals if the file does not provide them.

Assumes that the faces are given in counter-clockwise order in a right-handed coordinate system (or clockwise order in a left-handed system).


ADD_NORMALS_CW

public static final NormalMode ADD_NORMALS_CW
Do not change existing normals, but generate normals if the file does not provide them.

Assumes that the faces are given in clockwise order in a right-handed coordinate system (or counter-clockwise order in a left-handed).

Method Detail

values

public static NormalMode[] 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 (NormalMode c : NormalMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NormalMode valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.