BowlerKernel
|
Public Member Functions | |
Bounds (Vector3d min, Vector3d max) | |
Bounds | clone () |
Vector3d | getCenter () |
Vector3d | getBounds () |
CSG | toCSG () |
Cube | toCube () |
boolean | contains (Vertex v) |
boolean | contains (Vector3d v) |
boolean | contains (Polygon p) |
boolean | intersects (Polygon p) |
boolean | intersects (Bounds b) |
Vector3d | getMin () |
Vector3d | getMax () |
String | toString () |
Private Attributes | |
final Vector3d | center |
final Vector3d | bounds |
final Vector3d | min |
final Vector3d | max |
CSG | csg |
Cube | cube |
Bounding box for CSGs.
Definition at line 14 of file Bounds.java.
Constructor.
min | min x,y,z values |
max | max x,y,z values |
Definition at line 40 of file Bounds.java.
References eu.mihosoft.vrl.v3d.Vector3d.clone(), eu.mihosoft.vrl.v3d.Bounds.max, eu.mihosoft.vrl.v3d.Bounds.min, eu.mihosoft.vrl.v3d.Vector3d.x(), eu.mihosoft.vrl.v3d.Vector3d.y(), and eu.mihosoft.vrl.v3d.Vector3d.z().
Referenced by eu.mihosoft.vrl.v3d.Bounds.clone().
Bounds eu.mihosoft.vrl.v3d.Bounds.clone | ( | ) |
Definition at line 59 of file Bounds.java.
References eu.mihosoft.vrl.v3d.Bounds.Bounds(), eu.mihosoft.vrl.v3d.Vector3d.clone(), eu.mihosoft.vrl.v3d.Bounds.max, and eu.mihosoft.vrl.v3d.Bounds.min.
boolean eu.mihosoft.vrl.v3d.Bounds.contains | ( | Polygon | p | ) |
Indicates whether the specified polygon is contained within this bounding box (check includes box boundary).
p | polygon to check |
Definition at line 145 of file Bounds.java.
References eu.mihosoft.vrl.v3d.Bounds.contains(), and eu.mihosoft.vrl.v3d.Polygon.vertices.
boolean eu.mihosoft.vrl.v3d.Bounds.contains | ( | Vector3d | v | ) |
Indicates whether the specified point is contained within this bounding box (check includes box boundary).
v | vertex to check |
Definition at line 129 of file Bounds.java.
References eu.mihosoft.vrl.v3d.Bounds.max, eu.mihosoft.vrl.v3d.Bounds.min, eu.mihosoft.vrl.v3d.Vector3d.x(), eu.mihosoft.vrl.v3d.Vector3d.y(), and eu.mihosoft.vrl.v3d.Vector3d.z().
boolean eu.mihosoft.vrl.v3d.Bounds.contains | ( | Vertex | v | ) |
Indicates whether the specified vertex is contained within this bounding box (check includes box boundary).
v | vertex to check |
Definition at line 117 of file Bounds.java.
References eu.mihosoft.vrl.v3d.Vertex.pos.
Referenced by eu.mihosoft.vrl.v3d.Bounds.contains().
Vector3d eu.mihosoft.vrl.v3d.Bounds.getBounds | ( | ) |
Returns the bounds (width,height,depth).
Definition at line 77 of file Bounds.java.
References eu.mihosoft.vrl.v3d.Bounds.bounds.
Vector3d eu.mihosoft.vrl.v3d.Bounds.getCenter | ( | ) |
Returns the position of the center.
Definition at line 68 of file Bounds.java.
References eu.mihosoft.vrl.v3d.Bounds.center.
Vector3d eu.mihosoft.vrl.v3d.Bounds.getMax | ( | ) |
Gets the max.
Definition at line 201 of file Bounds.java.
References eu.mihosoft.vrl.v3d.Bounds.max.
Referenced by eu.mihosoft.vrl.v3d.XModifier.eval(), eu.mihosoft.vrl.v3d.YModifier.eval(), eu.mihosoft.vrl.v3d.ZModifier.eval(), eu.mihosoft.vrl.v3d.Bounds.intersects(), eu.mihosoft.vrl.v3d.CSG.toXMax(), eu.mihosoft.vrl.v3d.CSG.toYMax(), and eu.mihosoft.vrl.v3d.CSG.toZMax().
Vector3d eu.mihosoft.vrl.v3d.Bounds.getMin | ( | ) |
Gets the min.
Definition at line 192 of file Bounds.java.
References eu.mihosoft.vrl.v3d.Bounds.min.
Referenced by eu.mihosoft.vrl.v3d.XModifier.eval(), eu.mihosoft.vrl.v3d.YModifier.eval(), eu.mihosoft.vrl.v3d.ZModifier.eval(), eu.mihosoft.vrl.v3d.Bounds.intersects(), eu.mihosoft.vrl.v3d.CSG.toXMin(), eu.mihosoft.vrl.v3d.CSG.toYMin(), and eu.mihosoft.vrl.v3d.CSG.toZMin().
boolean eu.mihosoft.vrl.v3d.Bounds.intersects | ( | Bounds | b | ) |
Indicates whether the specified bounding box intersects with this bounding box (check includes box boundary).
b | box to check |
Definition at line 171 of file Bounds.java.
References eu.mihosoft.vrl.v3d.Bounds.getMax(), eu.mihosoft.vrl.v3d.Bounds.getMin(), eu.mihosoft.vrl.v3d.Vector3d.x(), eu.mihosoft.vrl.v3d.Vector3d.y(), and eu.mihosoft.vrl.v3d.Vector3d.z().
boolean eu.mihosoft.vrl.v3d.Bounds.intersects | ( | Polygon | p | ) |
Indicates whether the specified polygon intersects with this bounding box (check includes box boundary).
p | polygon to check |
Definition at line 159 of file Bounds.java.
Referenced by eu.mihosoft.vrl.v3d.CSG._differencePolygonBoundsOpt(), eu.mihosoft.vrl.v3d.CSG._unionIntersectOpt(), and eu.mihosoft.vrl.v3d.CSG._unionPolygonBoundsOpt().
CSG eu.mihosoft.vrl.v3d.Bounds.toCSG | ( | ) |
Returns this bounding box as csg.
Definition at line 86 of file Bounds.java.
References eu.mihosoft.vrl.v3d.Bounds.bounds, eu.mihosoft.vrl.v3d.Bounds.center, eu.mihosoft.vrl.v3d.Bounds.csg, eu.mihosoft.vrl.v3d.Bounds.cube, and eu.mihosoft.vrl.v3d.Primitive.toCSG().
Referenced by eu.mihosoft.vrl.v3d.CSG._differenceCSGBoundsOpt().
Cube eu.mihosoft.vrl.v3d.Bounds.toCube | ( | ) |
Returns this bounding box as cube.
Definition at line 100 of file Bounds.java.
References eu.mihosoft.vrl.v3d.Bounds.bounds, eu.mihosoft.vrl.v3d.Bounds.center, eu.mihosoft.vrl.v3d.Bounds.csg, eu.mihosoft.vrl.v3d.Bounds.cube, and eu.mihosoft.vrl.v3d.Primitive.toCSG().
String eu.mihosoft.vrl.v3d.Bounds.toString | ( | ) |
Definition at line 209 of file Bounds.java.
References eu.mihosoft.vrl.v3d.Bounds.bounds, and eu.mihosoft.vrl.v3d.Bounds.center.
Referenced by eu.mihosoft.vrl.v3d.MeshContainer.toString().
|
private |
The bounds.
Definition at line 20 of file Bounds.java.
Referenced by eu.mihosoft.vrl.v3d.Bounds.getBounds(), eu.mihosoft.vrl.v3d.Bounds.toCSG(), eu.mihosoft.vrl.v3d.Bounds.toCube(), and eu.mihosoft.vrl.v3d.Bounds.toString().
|
private |
The center.
Definition at line 17 of file Bounds.java.
Referenced by eu.mihosoft.vrl.v3d.Bounds.getCenter(), eu.mihosoft.vrl.v3d.Bounds.toCSG(), eu.mihosoft.vrl.v3d.Bounds.toCube(), and eu.mihosoft.vrl.v3d.Bounds.toString().
|
private |
The csg.
Definition at line 29 of file Bounds.java.
Referenced by eu.mihosoft.vrl.v3d.Bounds.toCSG(), and eu.mihosoft.vrl.v3d.Bounds.toCube().
|
private |
The cube.
Definition at line 32 of file Bounds.java.
Referenced by eu.mihosoft.vrl.v3d.Bounds.toCSG(), and eu.mihosoft.vrl.v3d.Bounds.toCube().
|
private |
The max.
Definition at line 26 of file Bounds.java.
Referenced by eu.mihosoft.vrl.v3d.Bounds.Bounds(), eu.mihosoft.vrl.v3d.Bounds.clone(), eu.mihosoft.vrl.v3d.Bounds.contains(), and eu.mihosoft.vrl.v3d.Bounds.getMax().
|
private |
The min.
Definition at line 23 of file Bounds.java.
Referenced by eu.mihosoft.vrl.v3d.Bounds.Bounds(), eu.mihosoft.vrl.v3d.Bounds.clone(), eu.mihosoft.vrl.v3d.Bounds.contains(), and eu.mihosoft.vrl.v3d.Bounds.getMin().