Class MDeformVert


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

    Class Documentation

    Blender Source Code

    Stores all of an element's vertex groups, and their weight values.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        Array of weight indices and values.

        • There must not be any duplicate #def_nr indices.

        • Groups in the array are unordered.

        • Indices outside the usable range of groups are ignored.

        There must not be any duplicate #def_nr indices. Groups in the array are unordered. Indices outside the usable range of groups are ignored.

        Pointer Arithmetics

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

         MDeformVert mdeformvert = ...;
         CPointer<Object> p = mdeformvert.__dna__addressof(MDeformVert.__DNA__FIELD__dw);
         CPointer<CPointer<MDeformWeight>> p_dw = p.cast(new Class[]{CPointer.class, MDeformWeight.class});
         

        Metadata

        • Field: 'dw'
        • Signature: 'MDeformWeight*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__totweight

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

        Field Documentation

        Blender Source Code

        The length of the getDw() array.

        Note

        This is not necessarily the same length as the total number of vertex groups. However, generally it isn't larger.

        This is not necessarily the same length as the total number of vertex groups. However, generally it isn't larger.

        Pointer Arithmetics

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

         MDeformVert mdeformvert = ...;
         CPointer<Object> p = mdeformvert.__dna__addressof(MDeformVert.__DNA__FIELD__totweight);
         CPointer<Integer> p_totweight = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'totweight'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__flag

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

        Field Documentation

        Blender Source Code

        Flag is only in use as a run-time tag at the moment.

        Pointer Arithmetics

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

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

        Metadata

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

      • MDeformVert

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

        protected MDeformVert​(MDeformVert that)
    • Method Detail

      • getDw

        public CPointer<MDeformWeight> getDw()
                                      throws java.io.IOException
        Get method for struct member 'dw'.

        Field Documentation

        Blender Source Code

        Array of weight indices and values.

        • There must not be any duplicate #def_nr indices.

        • Groups in the array are unordered.

        • Indices outside the usable range of groups are ignored.

        There must not be any duplicate #def_nr indices. Groups in the array are unordered. Indices outside the usable range of groups are ignored.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__dw
      • setDw

        public void setDw​(CPointer<MDeformWeight> dw)
                   throws java.io.IOException
        Set method for struct member 'dw'.

        Field Documentation

        Blender Source Code

        Array of weight indices and values.

        • There must not be any duplicate #def_nr indices.

        • Groups in the array are unordered.

        • Indices outside the usable range of groups are ignored.

        There must not be any duplicate #def_nr indices. Groups in the array are unordered. Indices outside the usable range of groups are ignored.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__dw
      • getTotweight

        public int getTotweight()
                         throws java.io.IOException
        Get method for struct member 'totweight'.

        Field Documentation

        Blender Source Code

        The length of the getDw() array.

        Note

        This is not necessarily the same length as the total number of vertex groups. However, generally it isn't larger.

        This is not necessarily the same length as the total number of vertex groups. However, generally it isn't larger.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__totweight
      • setTotweight

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

        Field Documentation

        Blender Source Code

        The length of the getDw() array.

        Note

        This is not necessarily the same length as the total number of vertex groups. However, generally it isn't larger.

        This is not necessarily the same length as the total number of vertex groups. However, generally it isn't larger.

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

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

        Field Documentation

        Blender Source Code

        Flag is only in use as a run-time tag at the moment.

        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

        Blender Source Code

        Flag is only in use as a run-time tag at the moment.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • __io__addressof

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