Class MFace


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

    Class Documentation

    Blender Source Code

    Used in Blender pre 2.63, See MLoop , MPoly for face data stored in the blend file. Use for reading old files and in a handful of cases which should be removed eventually.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         MFace mface = ...;
         CPointer<Object> p = mface.__dna__addressof(MFace.__DNA__FIELD__v1);
         CPointer<Integer> p_v1 = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'v1'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__v2

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

        Pointer Arithmetics

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

         MFace mface = ...;
         CPointer<Object> p = mface.__dna__addressof(MFace.__DNA__FIELD__v2);
         CPointer<Integer> p_v2 = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'v2'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__v3

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

        Pointer Arithmetics

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

         MFace mface = ...;
         CPointer<Object> p = mface.__dna__addressof(MFace.__DNA__FIELD__v3);
         CPointer<Integer> p_v3 = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'v3'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__v4

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

        Pointer Arithmetics

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

         MFace mface = ...;
         CPointer<Object> p = mface.__dna__addressof(MFace.__DNA__FIELD__v4);
         CPointer<Integer> p_v4 = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'v4'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__mat_nr

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

        Pointer Arithmetics

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

         MFace mface = ...;
         CPointer<Object> p = mface.__dna__addressof(MFace.__DNA__FIELD__mat_nr);
         CPointer<Short> p_mat_nr = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'mat_nr'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__edcode

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

        Field Documentation

        Blender Source Code

        We keep edcode, for conversion to edges draw flags in old files.

        Pointer Arithmetics

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

         MFace mface = ...;
         CPointer<Object> p = mface.__dna__addressof(MFace.__DNA__FIELD__edcode);
         CPointer<Byte> p_edcode = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'edcode'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__flag

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

        Pointer Arithmetics

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

         MFace mface = ...;
         CPointer<Object> p = mface.__dna__addressof(MFace.__DNA__FIELD__flag);
         CPointer<Byte> p_flag = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
    • Constructor Detail

      • MFace

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

        protected MFace​(MFace that)
    • Method Detail

      • getV1

        public int getV1()
                  throws java.io.IOException
        Get method for struct member 'v1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v1
      • setV1

        public void setV1​(int v1)
                   throws java.io.IOException
        Set method for struct member 'v1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v1
      • getV2

        public int getV2()
                  throws java.io.IOException
        Get method for struct member 'v2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v2
      • setV2

        public void setV2​(int v2)
                   throws java.io.IOException
        Set method for struct member 'v2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v2
      • getV3

        public int getV3()
                  throws java.io.IOException
        Get method for struct member 'v3'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v3
      • setV3

        public void setV3​(int v3)
                   throws java.io.IOException
        Set method for struct member 'v3'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v3
      • getV4

        public int getV4()
                  throws java.io.IOException
        Get method for struct member 'v4'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v4
      • setV4

        public void setV4​(int v4)
                   throws java.io.IOException
        Set method for struct member 'v4'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v4
      • getMat_nr

        public short getMat_nr()
                        throws java.io.IOException
        Get method for struct member 'mat_nr'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mat_nr
      • setMat_nr

        public void setMat_nr​(short mat_nr)
                       throws java.io.IOException
        Set method for struct member 'mat_nr'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mat_nr
      • getEdcode

        public byte getEdcode()
                       throws java.io.IOException
        Get method for struct member 'edcode'.

        Field Documentation

        Blender Source Code

        We keep edcode, for conversion to edges draw flags in old files.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__edcode
      • setEdcode

        public void setEdcode​(byte edcode)
                       throws java.io.IOException
        Set method for struct member 'edcode'.

        Field Documentation

        Blender Source Code

        We keep edcode, for conversion to edges draw flags in old files.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__edcode
      • getFlag

        public byte getFlag()
                     throws java.io.IOException
        Get method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

        public void setFlag​(byte flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • __io__addressof

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