Class SbBox4i32

java.lang.Object
com.openinventor.inventor.SbBasic
com.openinventor.inventor.SbBox4i32

public class SbBox4i32 extends SbBasic
4D box class. 4D box which has planes parallel to the major axes and is specified by two points on a diagonal. Bounds are included in left and included in right, [min, max]. The bbox ((0, 0, 0, 0), (0, 0, 0, 0)) contains the single point (0, 0, 0, 0).

See Also:
  • Field Details

    • array

      public final int[] array
  • Constructor Details

    • SbBox4i32

      public SbBox4i32(SbBox4i32 copyFrom)
    • SbBox4i32

      public SbBox4i32(int[] components)
    • SbBox4i32

      public SbBox4i32(SbVec4i32 _min, SbVec4i32 _max)
      Constructor for a 4D integer32 box. m_min and m_max are the corners of the diagonal that define the box.
    • SbBox4i32

      public SbBox4i32()
      Constructor for a 4D integer32 box. The box is initially empty.
  • Method Details

    • setValue

      public SbBox4i32 setValue(int[] components, int startIndex)
    • setValue

      public void setValue(SbBox4i32 copyFrom)
    • setValue

      public SbBox4i32 setValue(int[] components)
    • getValue

      public int[] getValue()
    • extendBy

      public void extendBy(SbVec4i32 pt)
      Extends this box (if necessary) to contain the specified point.
    • toArray

      public static SbBox4i32[] toArray(long nativeArray, long length)
    • intersect

      public boolean intersect(SbVec4i32 pt)
      Returns true if the specified point intersects this box.
    • getMin

      public SbVec4i32 getMin()
      Returns the minimum point of the box. The minimum point is the corner of the box with the lowest X, Y, Z and W values.
    • getMax

      public SbVec4i32 getMax()
      Returns the maximum point of the box. The maximum point is the corner of the box with the highest X, Y, Z and W values.
    • isEmpty

      public boolean isEmpty()
      Returns true if the box is empty, and false otherwise. Note: Setting the box to all zeros does not make it "empty". Use the makeEmpty() method. (This method only returns true if the maximum X value is less than the minimum X value.)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getSize

      public SbVec4i32 getSize()
      Gets box size.
    • makeEmpty

      public void makeEmpty()
      Makes an empty box.