Class MSelect


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

    Class Documentation

    Blender Source Code

    Optionally store the order of selected elements. This won't always be set since only some selection operations have an order.

    Typically accessed from Mesh.getMselect()

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        Index in the vertex, edge or polygon array.

        Pointer Arithmetics

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

         MSelect mselect = ...;
         CPointer<Object> p = mselect.__dna__addressof(MSelect.__DNA__FIELD__index);
         CPointer<Integer> p_index = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'index'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__type

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

        Field Documentation

        Blender Source Code

        #ME_VSEL, #ME_ESEL, #ME_FSEL.

        Pointer Arithmetics

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

         MSelect mselect = ...;
         CPointer<Object> p = mselect.__dna__addressof(MSelect.__DNA__FIELD__type);
         CPointer<Integer> p_type = p.cast(new Class[]{Integer.class});
         

        Metadata

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

      • MSelect

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

        protected MSelect​(MSelect that)
    • Method Detail

      • getIndex

        public int getIndex()
                     throws java.io.IOException
        Get method for struct member 'index'.

        Field Documentation

        Blender Source Code

        Index in the vertex, edge or polygon array.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__index
      • setIndex

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

        Field Documentation

        Blender Source Code

        Index in the vertex, edge or polygon array.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__index
      • getType

        public int getType()
                    throws java.io.IOException
        Get method for struct member 'type'.

        Field Documentation

        Blender Source Code

        #ME_VSEL, #ME_ESEL, #ME_FSEL.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • setType

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

        Field Documentation

        Blender Source Code

        #ME_VSEL, #ME_ESEL, #ME_FSEL.

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

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