Class HairMapping


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

    Class Documentation

    Blender Source Code

    Hair attachment to a mesh. TODO: attach to tessellated triangles or polygons? TODO: what type of interpolation to use for uv?

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         HairMapping hairmapping = ...;
         CPointer<Object> p = hairmapping.__dna__addressof(HairMapping.__DNA__FIELD__uv);
         CPointer<CArrayFacade<Float>> p_uv = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'uv'
        • Signature: 'float[2]'
        • Actual Size (32bit/64bit): 8/8
      • __DNA__FIELD__poly

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

        Pointer Arithmetics

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

         HairMapping hairmapping = ...;
         CPointer<Object> p = hairmapping.__dna__addressof(HairMapping.__DNA__FIELD__poly);
         CPointer<Integer> p_poly = p.cast(new Class[]{Integer.class});
         

        Metadata

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

      • HairMapping

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

        protected HairMapping​(HairMapping that)
    • Method Detail

      • getUv

        public CArrayFacade<java.lang.Float> getUv()
                                            throws java.io.IOException
        Get method for struct member 'uv'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__uv
      • setUv

        public void setUv​(CArrayFacade<java.lang.Float> uv)
                   throws java.io.IOException
        Set method for struct member 'uv'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__uv
      • getPoly

        public int getPoly()
                    throws java.io.IOException
        Get method for struct member 'poly'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__poly
      • setPoly

        public void setPoly​(int poly)
                     throws java.io.IOException
        Set method for struct member 'poly'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__poly
      • __io__addressof

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