Class BoundBox


  • public class BoundBox
    extends CFacade
    Generated facet for DNA struct type 'BoundBox'.

    Class Documentation

    Java .Blend

    The following illustrates the orientation of the bounding box in local space.
                             
                             Z  Y
                             | /
                             |/
                             .-----X
                             
                             
                                 2----------6
                                /|         /|
                               / |        / |
                              1----------5  |
                              |  |       |  |
                              |  3-------|--7
                              | /        | /
                              |/         |/
                              0----------4
                             

    Blender Source Code

    The following illustrates the orientation of the bounding box in local space

      

    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct BoundBox.

        It is required when allocating a new block to store data for BoundBox.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__vec

        public static final long[] __DNA__FIELD__vec
        Field descriptor (offset) for struct member 'vec'.

        Field Documentation

        Java .Blend

        The 8 vectors with 3 components (xyz) (see class documentation).

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         BoundBox boundbox = ...;
         CPointer<Object> p = boundbox.__dna__addressof(BoundBox.__DNA__FIELD__vec);
         CPointer<CArrayFacade<CArrayFacade<Float>>> p_vec = p.cast(new Class[]{CArrayFacade.class, CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'vec'
        • Signature: 'float[8][3]'
        • Actual Size (32bit/64bit): 96/96
      • __DNA__FIELD__flag

        public static final long[] __DNA__FIELD__flag
        Field descriptor (offset) for struct member 'flag'.

        Field Documentation

        Java .Blend

        One of:
        • BOUNDBOX_DISABLED(1 << 0)
        • BOUNDBOX_DIRTY (1 << 1)

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         BoundBox boundbox = ...;
         CPointer<Object> p = boundbox.__dna__addressof(BoundBox.__DNA__FIELD__flag);
         CPointer<Integer> p_flag = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD___pad0

        public static final long[] __DNA__FIELD___pad0
        Field descriptor (offset) for struct member '_pad0'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         BoundBox boundbox = ...;
         CPointer<Object> p = boundbox.__dna__addressof(BoundBox.__DNA__FIELD___pad0);
         CPointer<CArrayFacade<Byte>> p__pad0 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad0'
        • Signature: 'char[4]'
        • Actual Size (32bit/64bit): 4/4
    • Constructor Detail

      • BoundBox

        public BoundBox​(long __address,
                        Block __block,
                        BlockTable __blockTable)
      • BoundBox

        protected BoundBox​(BoundBox that)
    • Method Detail

      • getVec

        public CArrayFacade<CArrayFacade<java.lang.Float>> getVec()
                                                           throws java.io.IOException
        Get method for struct member 'vec'.

        Field Documentation

        Java .Blend

        The 8 vectors with 3 components (xyz) (see class documentation).
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__vec
      • setVec

        public void setVec​(CArrayFacade<CArrayFacade<java.lang.Float>> vec)
                    throws java.io.IOException
        Set method for struct member 'vec'.

        Field Documentation

        Java .Blend

        The 8 vectors with 3 components (xyz) (see class documentation).
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__vec
      • getFlag

        public int getFlag()
                    throws java.io.IOException
        Get method for struct member 'flag'.

        Field Documentation

        Java .Blend

        One of:
        • BOUNDBOX_DISABLED(1 << 0)
        • BOUNDBOX_DIRTY (1 << 1)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

        public void setFlag​(int flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.

        Field Documentation

        Java .Blend

        One of:
        • BOUNDBOX_DISABLED(1 << 0)
        • BOUNDBOX_DIRTY (1 << 1)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • get_pad0

        public CArrayFacade<java.lang.Byte> get_pad0()
                                              throws java.io.IOException
        Get method for struct member '_pad0'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad0
      • set_pad0

        public void set_pad0​(CArrayFacade<java.lang.Byte> _pad0)
                      throws java.io.IOException
        Set method for struct member '_pad0'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad0
      • __io__addressof

        public CPointer<BoundBox> __io__addressof()
        Instantiates a pointer on this instance.