Class MLoopUV


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

    Class Documentation

    Java .Blend

    Elements of the UV map. Each element contains the UV coordinates for a point of the corresponding loop entry. Thus for each loopuv entry there exists a loop entry with the same index.

    Blender Source Code

    UV coordinate for a polygon face & flag for selection & other options.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Java .Blend

        The 2D UV coordinates.

        Pointer Arithmetics

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

         MLoopUV mloopuv = ...;
         CPointer<Object> p = mloopuv.__dna__addressof(MLoopUV.__DNA__FIELD__uv);
         CPointer<CArrayFacade<Float>> p_uv = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'uv'
        • Signature: 'float[2]'
        • Actual Size (32bit/64bit): 8/8
      • __DNA__FIELD__flag

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

        Field Documentation

        Java .Blend

        Values:

                MLOOPUV_EDGESEL = (1 << 0),
                MLOOPUV_VERTSEL = (1 << 1),
                MLOOPUV_PINNED  = (1 << 2),
                                        

        Pointer Arithmetics

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

         MLoopUV mloopuv = ...;
         CPointer<Object> p = mloopuv.__dna__addressof(MLoopUV.__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

      • MLoopUV

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

        protected MLoopUV​(MLoopUV that)
    • Method Detail

      • getUv

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

        Field Documentation

        Java .Blend

        The 2D UV coordinates.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__uv
      • setUv

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

        Field Documentation

        Java .Blend

        The 2D UV coordinates.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__uv
      • getFlag

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

        Field Documentation

        Java .Blend

        Values:

                MLOOPUV_EDGESEL = (1 << 0),
                MLOOPUV_VERTSEL = (1 << 1),
                MLOOPUV_PINNED  = (1 << 2),
                                        
        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

        Values:

                MLOOPUV_EDGESEL = (1 << 0),
                MLOOPUV_VERTSEL = (1 << 1),
                MLOOPUV_PINNED  = (1 << 2),
                                        
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • __io__addressof

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