Class MEdge


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

    Class Documentation

    Java .Blend

    An edge defined by two vertices v1 and v2. Vertex order does not tell which side is front facing. @see MLoop, MVert

    Blender Source Code

    Mesh Edges.

    Typically accessed from Mesh.getMedge()

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Java .Blend

        First vertex of the edge (index in vertex array).

        Blender Source Code

        Un-ordered vertex indices (cannot match).

        Pointer Arithmetics

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

         MEdge medge = ...;
         CPointer<Object> p = medge.__dna__addressof(MEdge.__DNA__FIELD__v1);
         CPointer<Integer> p_v1 = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'v1'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__v2

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

        Field Documentation

        Java .Blend

        Second vertex of the edge (index in vertex array).

        Pointer Arithmetics

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

         MEdge medge = ...;
         CPointer<Object> p = medge.__dna__addressof(MEdge.__DNA__FIELD__v2);
         CPointer<Integer> p_v2 = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'v2'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__crease

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

        Pointer Arithmetics

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

         MEdge medge = ...;
         CPointer<Object> p = medge.__dna__addressof(MEdge.__DNA__FIELD__crease);
         CPointer<Byte> p_crease = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'crease'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__bweight

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

        Pointer Arithmetics

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

         MEdge medge = ...;
         CPointer<Object> p = medge.__dna__addressof(MEdge.__DNA__FIELD__bweight);
         CPointer<Byte> p_bweight = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'bweight'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__flag

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

        Field Documentation

        Java .Blend

        Values

         //     SELECT              = (1 << 0), 
                ME_EDGEDRAW         = (1 << 1),
                ME_SEAM             = (1 << 2),
         //     ME_HIDE             = (1 << 4), 
                ME_EDGERENDER       = (1 << 5),
                ME_LOOSEEDGE        = (1 << 7),
                ME_EDGE_TMP_TAG     = (1 << 8),
                ME_SHARP            = (1 << 9),
                                        

        Pointer Arithmetics

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

         MEdge medge = ...;
         CPointer<Object> p = medge.__dna__addressof(MEdge.__DNA__FIELD__flag);
         CPointer<Short> p_flag = p.cast(new Class[]{Short.class});
         

        Metadata

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

      • MEdge

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

        protected MEdge​(MEdge that)
    • Method Detail

      • getV1

        public int getV1()
                  throws java.io.IOException
        Get method for struct member 'v1'.

        Field Documentation

        Java .Blend

        First vertex of the edge (index in vertex array).

        Blender Source Code

        Un-ordered vertex indices (cannot match).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v1
      • setV1

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

        Field Documentation

        Java .Blend

        First vertex of the edge (index in vertex array).

        Blender Source Code

        Un-ordered vertex indices (cannot match).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v1
      • getV2

        public int getV2()
                  throws java.io.IOException
        Get method for struct member 'v2'.

        Field Documentation

        Java .Blend

        Second vertex of the edge (index in vertex array).
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v2
      • setV2

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

        Field Documentation

        Java .Blend

        Second vertex of the edge (index in vertex array).
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v2
      • getCrease

        public byte getCrease()
                       throws java.io.IOException
        Get method for struct member 'crease'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__crease
      • setCrease

        public void setCrease​(byte crease)
                       throws java.io.IOException
        Set method for struct member 'crease'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__crease
      • getBweight

        public byte getBweight()
                        throws java.io.IOException
        Get method for struct member 'bweight'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__bweight
      • setBweight

        public void setBweight​(byte bweight)
                        throws java.io.IOException
        Set method for struct member 'bweight'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__bweight
      • getFlag

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

        Field Documentation

        Java .Blend

        Values

         //     SELECT              = (1 << 0), 
                ME_EDGEDRAW         = (1 << 1),
                ME_SEAM             = (1 << 2),
         //     ME_HIDE             = (1 << 4), 
                ME_EDGERENDER       = (1 << 5),
                ME_LOOSEEDGE        = (1 << 7),
                ME_EDGE_TMP_TAG     = (1 << 8),
                ME_SHARP            = (1 << 9),
                                        
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

        public void setFlag​(short flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.

        Field Documentation

        Java .Blend

        Values

         //     SELECT              = (1 << 0), 
                ME_EDGEDRAW         = (1 << 1),
                ME_SEAM             = (1 << 2),
         //     ME_HIDE             = (1 << 4), 
                ME_EDGERENDER       = (1 << 5),
                ME_LOOSEEDGE        = (1 << 7),
                ME_EDGE_TMP_TAG     = (1 << 8),
                ME_SHARP            = (1 << 9),
                                        
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • __io__addressof

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