Enum RegionCutRule
- All Implemented Interfaces:
Serializable
,Comparable<RegionCutRule>
Enum describing the possible behaviors when cutting a region BSP tree node
with a hyperplane to produce two new child nodes.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSet both child nodes to the same location as the parent node.Set the minus side of the cutting hyperplane as the inside of the region and the plus side as the outside.Set the plus side of the cutting hyperplane as the inside of the region and the minus side as the outside. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RegionCutRule
Returns the enum constant of this type with the specified name.static RegionCutRule[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MINUS_INSIDE
Set the minus side of the cutting hyperplane as the inside of the region and the plus side as the outside. This is the default convention for hyperplanes. -
PLUS_INSIDE
Set the plus side of the cutting hyperplane as the inside of the region and the minus side as the outside. -
INHERIT
Set both child nodes to the same location as the parent node. For example, if the parent node is marked as inside, both child nodes will be marked as inside. Similarly if the parent node is marked as outside, both child nodes will be marked as outside. This rule can be used to modify the tree structure (to perhaps produce a more efficient, balanced tree) without changing the represented region.
-
-
Constructor Details
-
RegionCutRule
private RegionCutRule()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-