Class HairCurve


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        Index of first point of hair curve.

        Pointer Arithmetics

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

         HairCurve haircurve = ...;
         CPointer<Object> p = haircurve.__dna__addressof(HairCurve.__DNA__FIELD__firstpoint);
         CPointer<Integer> p_firstpoint = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'firstpoint'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__numpoints

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

        Field Documentation

        Blender Source Code

        Number of points in hair curve, must be 2 or higher.

        Pointer Arithmetics

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

         HairCurve haircurve = ...;
         CPointer<Object> p = haircurve.__dna__addressof(HairCurve.__DNA__FIELD__numpoints);
         CPointer<Integer> p_numpoints = p.cast(new Class[]{Integer.class});
         

        Metadata

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

      • HairCurve

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

        protected HairCurve​(HairCurve that)
    • Method Detail

      • getFirstpoint

        public int getFirstpoint()
                          throws java.io.IOException
        Get method for struct member 'firstpoint'.

        Field Documentation

        Blender Source Code

        Index of first point of hair curve.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__firstpoint
      • setFirstpoint

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

        Field Documentation

        Blender Source Code

        Index of first point of hair curve.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__firstpoint
      • getNumpoints

        public int getNumpoints()
                         throws java.io.IOException
        Get method for struct member 'numpoints'.

        Field Documentation

        Blender Source Code

        Number of points in hair curve, must be 2 or higher.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__numpoints
      • setNumpoints

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

        Field Documentation

        Blender Source Code

        Number of points in hair curve, must be 2 or higher.

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

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