Class MDeformWeight


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

    Class Documentation

    Blender Source Code

    Vertex group index and weight for #MDeformVert.dw

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        be unique when in an array.

        Pointer Arithmetics

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

         MDeformWeight mdeformweight = ...;
         CPointer<Object> p = mdeformweight.__dna__addressof(MDeformWeight.__DNA__FIELD__def_nr);
         CPointer<Integer> p_def_nr = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'def_nr'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__weight

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

        Field Documentation

        Blender Source Code

        Weight between 0.0 and 1.0.

        Pointer Arithmetics

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

         MDeformWeight mdeformweight = ...;
         CPointer<Object> p = mdeformweight.__dna__addressof(MDeformWeight.__DNA__FIELD__weight);
         CPointer<Float> p_weight = p.cast(new Class[]{Float.class});
         

        Metadata

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

      • MDeformWeight

        public MDeformWeight​(long __address,
                             Block __block,
                             BlockTable __blockTable)
    • Method Detail

      • getDef_nr

        public int getDef_nr()
                      throws java.io.IOException
        Get method for struct member 'def_nr'.

        Field Documentation

        Blender Source Code

        be unique when in an array.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__def_nr
      • setDef_nr

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

        Field Documentation

        Blender Source Code

        be unique when in an array.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__def_nr
      • getWeight

        public float getWeight()
                        throws java.io.IOException
        Get method for struct member 'weight'.

        Field Documentation

        Blender Source Code

        Weight between 0.0 and 1.0.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__weight
      • setWeight

        public void setWeight​(float weight)
                       throws java.io.IOException
        Set method for struct member 'weight'.

        Field Documentation

        Blender Source Code

        Weight between 0.0 and 1.0.

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

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