|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<GridItemSet.GridRangeStyle>
net.algart.model3d.common.movement.model.GridItemSet.GridRangeStyle
public static enum GridItemSet.GridRangeStyle extends java.lang.Enum<GridItemSet.GridRangeStyle>
Method of calculating the grid bounds: which area of 3D space should be splitted into rectangular cells
by GridItemSet.preprocess() method.
| Enum Constant and Description |
|---|
MINIMUM_AND_MAXIMUM_CENTERS
The algorithm of building grid checks all items, which implement HavingInteractionRadius
and have an interaction radius,
different than Double.POSITIVE_INFINITY, and finds the minimal and maximal coordinates among
the centers of all such items: xmin, xmax,
ymin, ymax, zmin, zmax. |
MINIMUM_AND_MAXIMUM_WALL_VERTICES
The algorithm of building grid checks all items, which are BunkerWall instance,
gets coordinates of all vertices of these walls
and finds minimal and maximal coordinates among these vertices:
xmin, xmax,
ymin, ymax, zmin, zmax. |
| Modifier and Type | Method and Description |
|---|---|
static GridItemSet.GridRangeStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static GridItemSet.GridRangeStyle[] |
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 GridItemSet.GridRangeStyle MINIMUM_AND_MAXIMUM_CENTERS
HavingInteractionRadius
and have an interaction radius,
different than Double.POSITIVE_INFINITY, and finds the minimal and maximal coordinates among
the centers of all such items: xmin, xmax,
ymin, ymax, zmin, zmax.
The grid is built by splitting the parallelepiped
xmin≤x≤xmax,
ymin≤y≤ymax,
zmin≤z≤zmax
into
public static final GridItemSet.GridRangeStyle MINIMUM_AND_MAXIMUM_WALL_VERTICES
BunkerWall instance,
gets coordinates of all vertices of these walls
and finds minimal and maximal coordinates among these vertices:
xmin, xmax,
ymin, ymax, zmin, zmax.
The grid is built by splitting the parallelepiped
xmin≤x≤xmax,
ymin≤y≤ymax,
zmin≤z≤zmax
into This method is good if there is some amount of spherical items with very large absolute coordinates
(and, so, MINIMUM_AND_MAXIMUM_CENTERS method build too large and inefficient grid),
but most of items lie inside a bunker, described by several bunker walls.
| Method Detail |
|---|
public static GridItemSet.GridRangeStyle[] values()
for (GridItemSet.GridRangeStyle c : GridItemSet.GridRangeStyle.values()) System.out.println(c);
public static GridItemSet.GridRangeStyle 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 namejava.lang.NullPointerException - if the argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||