Class MVert


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

    Class Documentation

    Java .Blend

    A single vertex with coordinates and normal vector.

    Blender Source Code

    Mesh Vertices.

    Typically accessed from #Mesh.verts()

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Java .Blend

        XYZ coordinates.

        Pointer Arithmetics

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

         MVert mvert = ...;
         CPointer<Object> p = mvert.__dna__addressof(MVert.__DNA__FIELD__co);
         CPointer<CArrayFacade<Float>> p_co = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'co'
        • Signature: 'float[3]'
        • Actual Size (32bit/64bit): 12/12
      • __DNA__FIELD__flag

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

        Field Documentation

        Java .Blend

        Values

                SELECT                          = 1
                ME_VERT_TMP_TAG     = (1 << 2),
                ME_HIDE             = (1 << 4),
                ME_VERT_MERGED      = (1 << 6),
                ME_VERT_PBVH_UPDATE = (1 << 7),
                                        

        Pointer Arithmetics

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

         MVert mvert = ...;
         CPointer<Object> p = mvert.__dna__addressof(MVert.__DNA__FIELD__flag);
         CPointer<Byte> p_flag = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'flag'
        • 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:

         MVert mvert = ...;
         CPointer<Object> p = mvert.__dna__addressof(MVert.__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___pad

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

        Pointer Arithmetics

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

         MVert mvert = ...;
         CPointer<Object> p = mvert.__dna__addressof(MVert.__DNA__FIELD___pad);
         CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad'
        • Signature: 'char[2]'
        • Actual Size (32bit/64bit): 2/2
    • Constructor Detail

      • MVert

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

        protected MVert​(MVert that)
    • Method Detail

      • getCo

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

        Field Documentation

        Java .Blend

        XYZ coordinates.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__co
      • setCo

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

        Field Documentation

        Java .Blend

        XYZ coordinates.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__co
      • getFlag

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

        Field Documentation

        Java .Blend

        Values

                SELECT                          = 1
                ME_VERT_TMP_TAG     = (1 << 2),
                ME_HIDE             = (1 << 4),
                ME_VERT_MERGED      = (1 << 6),
                ME_VERT_PBVH_UPDATE = (1 << 7),
                                        
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

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

        Field Documentation

        Java .Blend

        Values

                SELECT                          = 1
                ME_VERT_TMP_TAG     = (1 << 2),
                ME_HIDE             = (1 << 4),
                ME_VERT_MERGED      = (1 << 6),
                ME_VERT_PBVH_UPDATE = (1 << 7),
                                        
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • 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
      • get_pad

        public CArrayFacade<java.lang.Byte> get_pad()
                                             throws java.io.IOException
        Get method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • set_pad

        public void set_pad​(CArrayFacade<java.lang.Byte> _pad)
                     throws java.io.IOException
        Set method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • __io__addressof

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