public class SbBox3i32 extends SbBasic
SoGetBoundingBoxAction
).
See also:
SbXfBox3f
, SbBox2f
, SbBox3s
, SbBox2i32
, SbBox2s
, SbVec3i32
, SbVec3s
, SbVec2f
, SbVec2i32
, SbVec2s
, SbMatrix
, SoGetBoundingBoxAction
Modifier and Type | Field and Description |
---|---|
int[] |
array |
Constructor and Description |
---|
SbBox3i32()
Constructor for a 3D integer32 box.
|
SbBox3i32(int[] components) |
SbBox3i32(int xmin,
int ymin,
int zmin,
int xmax,
int ymax,
int zmax)
Constructor for a 3D integer32 box.
|
SbBox3i32(SbBox3i32 copyFrom) |
SbBox3i32(SbBox3s box)
Constructor given an
SbBox3s (adapter). |
SbBox3i32(SbVec3i32 _min,
SbVec3i32 _max)
Constructor for a 3D integer32 box.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(SbBox3i32 bb)
Returns true if the specified box is fully contained inside this box.
|
boolean |
equals(java.lang.Object obj) |
void |
extendBy(SbBox3i32 bb)
Extends this box (if necessary) to contain the specified box.
|
void |
extendBy(SbVec3f pt)
Extends this box (if necessary) to contain the specified point.
|
int[] |
getBounds()
Gets the corners of the box.
|
SbVec3f |
getCenter()
Returns the center of the box.
|
SbVec3f |
getClosestPoint(SbVec3f point)
Returns the closest point on the box to the given point.
|
SbVec3i32 |
getMax()
Returns the maximum point of the box.
|
SbVec3i32 |
getMin()
Returns the minimum point of the box.
|
SbVec3i32[] |
getMinMax()
Gets the corners of the box.
|
int[] |
getOrigin()
Gets box origin which is the same as the minimum corner of the box.
|
SbVec3i32 |
getSize()
Gets box size.
|
float[] |
getSpan(SbVec3f direction)
Finds the span of a box along a specified direction.
|
int[] |
getValue() |
float |
getVolume()
Returns the volume of the box.
|
boolean |
hasVolume()
Returns true if all three dimensions of the box have positive size, and false otherwise.
|
boolean |
intersect(SbBox3i32 bb)
Returns true if the specified box intersects this box.
|
boolean |
intersect(SbVec3f pt)
Returns true if the specified point intersects this box.
|
boolean |
intersect(SbVec3i32 pt)
Returns true if the specified point intersects this box.
|
SbBox3i32 |
intersection(SbBox3i32 box)
Returns the intersection of the specified box with this box.
|
boolean |
isEmpty()
Returns true if the box is empty, and false otherwise.
|
void |
makeEmpty()
Makes an empty box.
|
int |
outside(SbMatrix MVP)
Returns true if bounding box is completely outside the view-volume defined by the model+view+projection matrix given.
|
void |
setBounds(int xmin,
int ymin,
int zmin,
int xmax,
int ymax,
int zmax)
Sets the corners of the box.
|
void |
setBounds(SbVec3i32 _min,
SbVec3i32 _max)
Sets the corners of the box.
|
SbBox3i32 |
setValue(int[] components) |
SbBox3i32 |
setValue(int[] components,
int startIndex) |
void |
setValue(SbBox3i32 copyFrom) |
static SbBox3i32[] |
toArray(long nativeArray,
long length) |
void |
transform(SbMatrix m)
Transforms box by matrix, enlarging box to contain result.
|
public SbBox3i32(SbBox3i32 copyFrom)
public SbBox3i32(int[] components)
public SbBox3i32()
public SbBox3i32(int xmin, int ymin, int zmin, int xmax, int ymax, int zmax)
public SbBox3i32 setValue(int[] components, int startIndex)
public void setValue(SbBox3i32 copyFrom)
public SbBox3i32 setValue(int[] components)
public int[] getValue()
public float[] getSpan(SbVec3f direction)
public boolean hasVolume()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static SbBox3i32[] toArray(long nativeArray, long length)
public void transform(SbMatrix m)
public float getVolume()
public int outside(SbMatrix MVP)
SoGLRenderAction
and SoSeparator
will handle this automatically for render culling).public void extendBy(SbVec3f pt)
public void extendBy(SbBox3i32 bb)
public void setBounds(int xmin, int ymin, int zmin, int xmax, int ymax, int zmax)
public SbVec3f getCenter()
public SbBox3i32 intersection(SbBox3i32 box)
public boolean intersect(SbVec3i32 pt)
public boolean intersect(SbBox3i32 bb)
public boolean intersect(SbVec3f pt)
public boolean contains(SbBox3i32 bb)
public SbVec3i32 getMax()
public SbVec3i32 getSize()
public void makeEmpty()
public boolean isEmpty()
makeEmpty()
method. (This method only returns true if the maximum X value is
less than the minimum X value.)public SbVec3i32 getMin()
public int[] getBounds()
public SbVec3i32[] getMinMax()
public int[] getOrigin()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com