Class bGPDtriangle


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

    Class Documentation

    Blender Source Code


    GP Fill - Triangle Tessellation Data Grease-Pencil Annotations - 'Triangle' -> A triangle contains the index of three vertices for filling the stroke This is only used if high quality fill is enabled

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        indices for tessellated triangle used for GP Fill

        Pointer Arithmetics

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

         bGPDtriangle bgpdtriangle = ...;
         CPointer<Object> p = bgpdtriangle.__dna__addressof(bGPDtriangle.__DNA__FIELD__verts);
         CPointer<CArrayFacade<Integer>> p_verts = p.cast(new Class[]{CArrayFacade.class, Integer.class});
         

        Metadata

        • Field: 'verts'
        • Signature: 'int[3]'
        • Actual Size (32bit/64bit): 12/12
    • Constructor Detail

      • bGPDtriangle

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

        protected bGPDtriangle​(bGPDtriangle that)
    • Method Detail

      • getVerts

        public CArrayFacade<java.lang.Integer> getVerts()
                                                 throws java.io.IOException
        Get method for struct member 'verts'.

        Field Documentation

        Blender Source Code

        indices for tessellated triangle used for GP Fill

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__verts
      • setVerts

        public void setVerts​(CArrayFacade<java.lang.Integer> verts)
                      throws java.io.IOException
        Set method for struct member 'verts'.

        Field Documentation

        Blender Source Code

        indices for tessellated triangle used for GP Fill

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

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