Package com.openinventor.inventor.nodes
Enum SoCSGShape.CsgOperationTypes
- java.lang.Object
-
- java.lang.Enum<SoCSGShape.CsgOperationTypes>
-
- com.openinventor.inventor.nodes.SoCSGShape.CsgOperationTypes
-
- All Implemented Interfaces:
IntegerValuedEnum
,java.io.Serializable
,java.lang.Comparable<SoCSGShape.CsgOperationTypes>
- Enclosing class:
- SoCSGShape
public static enum SoCSGShape.CsgOperationTypes extends java.lang.Enum<SoCSGShape.CsgOperationTypes> implements IntegerValuedEnum
CSG operation to be used.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD
leftOperand union rightOperand.ALL
Keep left and right primitives (concatenate all resulting faces).INTERSECTION
LeftOperand intersect rightOperand.LEFT_ONLY
Keep only leftOperand.NOTHING
Keep nothing (result will be empty).RIGHT_ONLY
Keep only rightOperand.SUB
LeftOperand - rightOperand.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
Returns the integer value of the enum constant.static SoCSGShape.CsgOperationTypes
valueOf(int val)
Returns the enum constant of this type with the specified integer valuestatic SoCSGShape.CsgOperationTypes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SoCSGShape.CsgOperationTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final SoCSGShape.CsgOperationTypes ADD
leftOperand union rightOperand. Remove useless faces and create edges if necessary.
-
SUB
public static final SoCSGShape.CsgOperationTypes SUB
LeftOperand - rightOperand. Remove useless faces and create edges if necessary.
-
INTERSECTION
public static final SoCSGShape.CsgOperationTypes INTERSECTION
LeftOperand intersect rightOperand. Remove useless faces and create edges if necessary.
-
LEFT_ONLY
public static final SoCSGShape.CsgOperationTypes LEFT_ONLY
Keep only leftOperand.
-
RIGHT_ONLY
public static final SoCSGShape.CsgOperationTypes RIGHT_ONLY
Keep only rightOperand.
-
NOTHING
public static final SoCSGShape.CsgOperationTypes NOTHING
Keep nothing (result will be empty). May be useful for debugging.
-
ALL
public static final SoCSGShape.CsgOperationTypes ALL
Keep left and right primitives (concatenate all resulting faces). May be useful for debugging.
-
-
Method Detail
-
values
public static SoCSGShape.CsgOperationTypes[] 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 (SoCSGShape.CsgOperationTypes c : SoCSGShape.CsgOperationTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SoCSGShape.CsgOperationTypes 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 namejava.lang.NullPointerException
- if the argument is null
-
valueOf
public static SoCSGShape.CsgOperationTypes valueOf(int val)
Returns the enum constant of this type with the specified integer value- Returns:
- the enum constant of this type with the specified integer value.
-
getValue
public int getValue()
Description copied from interface:IntegerValuedEnum
Returns the integer value of the enum constant.- Specified by:
getValue
in interfaceIntegerValuedEnum
- Returns:
- the integer value of the enum constant.
-
-