Class MLoop


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

    Class Documentation

    Java .Blend

    A loop element defined by a vertex and an edge. A loop is a face of the 3D object in Blender. A full loop (face) is defined by a set of loop entries, where each entry references a vertex and the adjacent edge in clock order. Thus, for each loop entry the system knows which side is front facing

    Blender Source Code

    Mesh Loops. Each loop represents the corner of a polygon (MPoly ).

    Typically accessed from #Mesh.mloop.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Java .Blend

        Associated vertex (index in vertex array).

        Blender Source Code

        Vertex index.

        Pointer Arithmetics

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

         MLoop mloop = ...;
         CPointer<Object> p = mloop.__dna__addressof(MLoop.__DNA__FIELD__v);
         CPointer<Integer> p_v = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'v'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__e

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

        Field Documentation

        Java .Blend

        Associated edge (index in edge array).

        Blender Source Code

        Edge index.

        Note

        The e here is because we want to move away from relying on edge hashes.

        The e here is because we want to move away from relying on edge hashes.

        Pointer Arithmetics

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

         MLoop mloop = ...;
         CPointer<Object> p = mloop.__dna__addressof(MLoop.__DNA__FIELD__e);
         CPointer<Integer> p_e = p.cast(new Class[]{Integer.class});
         

        Metadata

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

      • MLoop

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

        protected MLoop​(MLoop that)
    • Method Detail

      • getV

        public int getV()
                 throws java.io.IOException
        Get method for struct member 'v'.

        Field Documentation

        Java .Blend

        Associated vertex (index in vertex array).

        Blender Source Code

        Vertex index.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v
      • setV

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

        Field Documentation

        Java .Blend

        Associated vertex (index in vertex array).

        Blender Source Code

        Vertex index.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v
      • getE

        public int getE()
                 throws java.io.IOException
        Get method for struct member 'e'.

        Field Documentation

        Java .Blend

        Associated edge (index in edge array).

        Blender Source Code

        Edge index.

        Note

        The e here is because we want to move away from relying on edge hashes.

        The e here is because we want to move away from relying on edge hashes.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__e
      • setE

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

        Field Documentation

        Java .Blend

        Associated edge (index in edge array).

        Blender Source Code

        Edge index.

        Note

        The e here is because we want to move away from relying on edge hashes.

        The e here is because we want to move away from relying on edge hashes.

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

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