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.getMvert()

    • 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__no

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

        Field Documentation

        Java .Blend

        Normal vector.

        Blender Source Code

        Cache the normal, can always be recalculated from surrounding faces. See #CD_CUSTOMLOOPNORMAL for custom normals.

        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__no);
         CPointer<CArrayFacade<Short>> p_no = p.cast(new Class[]{CArrayFacade.class, Short.class});
         

        Metadata

        • Field: 'no'
        • Signature: 'short[3]'
        • Actual Size (32bit/64bit): 6/6
      • __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
    • 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
      • getNo

        public CArrayFacade<java.lang.Short> getNo()
                                            throws java.io.IOException
        Get method for struct member 'no'.

        Field Documentation

        Java .Blend

        Normal vector.

        Blender Source Code

        Cache the normal, can always be recalculated from surrounding faces. See #CD_CUSTOMLOOPNORMAL for custom normals.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__no
      • setNo

        public void setNo​(CArrayFacade<java.lang.Short> no)
                   throws java.io.IOException
        Set method for struct member 'no'.

        Field Documentation

        Java .Blend

        Normal vector.

        Blender Source Code

        Cache the normal, can always be recalculated from surrounding faces. See #CD_CUSTOMLOOPNORMAL for custom normals.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__no
      • 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
      • __io__addressof

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