Class BezTriple


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

    Class Documentation

    Blender Source Code

    Keyframes on F-Curves (allows code reuse of Bezier eval code) and Points on Bezier Curves/Paths are generally BezTriples.

    Note

    BezTriple.tilt location in struct is abused by Key system.

    BezTriple.tilt location in struct is abused by Key system.

    Note

    vec in BezTriple looks like this:

    • vec[0][0] = x location of handle 1

    • vec[0][1] = y location of handle 1

    • vec[0][2] = z location of handle 1 (not used for FCurve Points(2d))

    • vec[1][0] = x location of control point

    • vec[1][1] = y location of control point

    • vec[1][2] = z location of control point

    • vec[2][0] = x location of handle 2

    • vec[2][1] = y location of handle 2

    • vec[2][2] = z location of handle 2 (not used for FCurve Points(2d))

    vec[0][0] = x location of handle 1 vec[0][1] = y location of handle 1 vec[0][2] = z location of handle 1 (not used for FCurve Points(2d)) vec[1][0] = x location of control point vec[1][1] = y location of control point vec[1][2] = z location of control point vec[2][0] = x location of handle 2 vec[2][1] = y location of handle 2 vec[2][2] = z location of handle 2 (not used for FCurve Points(2d))

    vec in BezTriple looks like this: vec[0][0] = x location of handle 1 vec[0][1] = y location of handle 1 vec[0][2] = z location of handle 1 (not used for FCurve Points(2d)) vec[1][0] = x location of control point vec[1][1] = y location of control point vec[1][2] = z location of control point vec[2][0] = x location of handle 2 vec[2][1] = y location of handle 2 vec[2][2] = z location of handle 2 (not used for FCurve Points(2d))

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__vec);
         CPointer<CArrayFacade<CArrayFacade<Float>>> p_vec = p.cast(new Class[]{CArrayFacade.class, CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'vec'
        • Signature: 'float[3][3]'
        • Actual Size (32bit/64bit): 36/36
      • __DNA__FIELD__alfa

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

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__alfa);
         CPointer<Float> p_alfa = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'alfa'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__weight

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

        Field Documentation

        Blender Source Code

        Used for softbody goal weight.

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__weight);
         CPointer<Float> p_weight = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'weight'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__radius

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

        Field Documentation

        Blender Source Code

        For bevel tapering & modifiers.

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__radius);
         CPointer<Float> p_radius = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'radius'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__ipo

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

        Field Documentation

        Blender Source Code

        Ipo : interpolation mode for segment from this BezTriple to the next.

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__ipo);
         CPointer<Byte> p_ipo = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'ipo'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__h1

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

        Field Documentation

        Blender Source Code

        H1, h2: the handle type of the two handles.

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__h1);
         CPointer<Byte> p_h1 = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'h1'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__h2

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

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__h2);
         CPointer<Byte> p_h2 = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'h2'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__f1

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

        Field Documentation

        Blender Source Code

        F1, f2, f3: used for selection status.

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__f1);
         CPointer<Byte> p_f1 = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'f1'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__f2

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

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__f2);
         CPointer<Byte> p_f2 = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'f2'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__f3

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

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__f3);
         CPointer<Byte> p_f3 = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'f3'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__hide

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

        Field Documentation

        Blender Source Code

        Hide: used to indicate whether BezTriple is hidden (3D), type of keyframe (eBezTriple_KeyframeType).

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__hide);
         CPointer<Byte> p_hide = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'hide'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__easing

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

        Field Documentation

        Blender Source Code

        Easing: easing type for interpolation mode (eBezTriple_Easing).

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__easing);
         CPointer<Byte> p_easing = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'easing'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__back

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

        Field Documentation

        Blender Source Code

        BEZT_IPO_BACK.

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__back);
         CPointer<Float> p_back = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'back'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__amplitude

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

        Field Documentation

        Blender Source Code

        BEZT_IPO_ELASTIC.

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__amplitude);
         CPointer<Float> p_amplitude = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'amplitude'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__period

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

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__period);
         CPointer<Float> p_period = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'period'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__f5

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

        Field Documentation

        Blender Source Code

        F5: used for auto handle to distinguish between normal handle and exception (extrema).

        Pointer Arithmetics

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

         BezTriple beztriple = ...;
         CPointer<Object> p = beztriple.__dna__addressof(BezTriple.__DNA__FIELD__f5);
         CPointer<Byte> p_f5 = p.cast(new Class[]{Byte.class});
         

        Metadata

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

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

        Metadata

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

      • BezTriple

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

        protected BezTriple​(BezTriple that)
    • Method Detail

      • getAlfa

        public float getAlfa()
                      throws java.io.IOException
        Get method for struct member 'alfa'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__alfa
      • setAlfa

        public void setAlfa​(float alfa)
                     throws java.io.IOException
        Set method for struct member 'alfa'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__alfa
      • getWeight

        public float getWeight()
                        throws java.io.IOException
        Get method for struct member 'weight'.

        Field Documentation

        Blender Source Code

        Used for softbody goal weight.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__weight
      • setWeight

        public void setWeight​(float weight)
                       throws java.io.IOException
        Set method for struct member 'weight'.

        Field Documentation

        Blender Source Code

        Used for softbody goal weight.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__weight
      • getRadius

        public float getRadius()
                        throws java.io.IOException
        Get method for struct member 'radius'.

        Field Documentation

        Blender Source Code

        For bevel tapering & modifiers.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__radius
      • setRadius

        public void setRadius​(float radius)
                       throws java.io.IOException
        Set method for struct member 'radius'.

        Field Documentation

        Blender Source Code

        For bevel tapering & modifiers.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__radius
      • getIpo

        public byte getIpo()
                    throws java.io.IOException
        Get method for struct member 'ipo'.

        Field Documentation

        Blender Source Code

        Ipo : interpolation mode for segment from this BezTriple to the next.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ipo
      • setIpo

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

        Field Documentation

        Blender Source Code

        Ipo : interpolation mode for segment from this BezTriple to the next.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ipo
      • getH1

        public byte getH1()
                   throws java.io.IOException
        Get method for struct member 'h1'.

        Field Documentation

        Blender Source Code

        H1, h2: the handle type of the two handles.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__h1
      • setH1

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

        Field Documentation

        Blender Source Code

        H1, h2: the handle type of the two handles.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__h1
      • getH2

        public byte getH2()
                   throws java.io.IOException
        Get method for struct member 'h2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__h2
      • setH2

        public void setH2​(byte h2)
                   throws java.io.IOException
        Set method for struct member 'h2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__h2
      • getF1

        public byte getF1()
                   throws java.io.IOException
        Get method for struct member 'f1'.

        Field Documentation

        Blender Source Code

        F1, f2, f3: used for selection status.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__f1
      • setF1

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

        Field Documentation

        Blender Source Code

        F1, f2, f3: used for selection status.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__f1
      • getF2

        public byte getF2()
                   throws java.io.IOException
        Get method for struct member 'f2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__f2
      • setF2

        public void setF2​(byte f2)
                   throws java.io.IOException
        Set method for struct member 'f2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__f2
      • getF3

        public byte getF3()
                   throws java.io.IOException
        Get method for struct member 'f3'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__f3
      • setF3

        public void setF3​(byte f3)
                   throws java.io.IOException
        Set method for struct member 'f3'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__f3
      • getHide

        public byte getHide()
                     throws java.io.IOException
        Get method for struct member 'hide'.

        Field Documentation

        Blender Source Code

        Hide: used to indicate whether BezTriple is hidden (3D), type of keyframe (eBezTriple_KeyframeType).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__hide
      • setHide

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

        Field Documentation

        Blender Source Code

        Hide: used to indicate whether BezTriple is hidden (3D), type of keyframe (eBezTriple_KeyframeType).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__hide
      • getEasing

        public byte getEasing()
                       throws java.io.IOException
        Get method for struct member 'easing'.

        Field Documentation

        Blender Source Code

        Easing: easing type for interpolation mode (eBezTriple_Easing).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__easing
      • setEasing

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

        Field Documentation

        Blender Source Code

        Easing: easing type for interpolation mode (eBezTriple_Easing).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__easing
      • getBack

        public float getBack()
                      throws java.io.IOException
        Get method for struct member 'back'.

        Field Documentation

        Blender Source Code

        BEZT_IPO_BACK.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__back
      • setBack

        public void setBack​(float back)
                     throws java.io.IOException
        Set method for struct member 'back'.

        Field Documentation

        Blender Source Code

        BEZT_IPO_BACK.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__back
      • getAmplitude

        public float getAmplitude()
                           throws java.io.IOException
        Get method for struct member 'amplitude'.

        Field Documentation

        Blender Source Code

        BEZT_IPO_ELASTIC.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__amplitude
      • setAmplitude

        public void setAmplitude​(float amplitude)
                          throws java.io.IOException
        Set method for struct member 'amplitude'.

        Field Documentation

        Blender Source Code

        BEZT_IPO_ELASTIC.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__amplitude
      • getPeriod

        public float getPeriod()
                        throws java.io.IOException
        Get method for struct member 'period'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__period
      • setPeriod

        public void setPeriod​(float period)
                       throws java.io.IOException
        Set method for struct member 'period'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__period
      • getF5

        public byte getF5()
                   throws java.io.IOException
        Get method for struct member 'f5'.

        Field Documentation

        Blender Source Code

        F5: used for auto handle to distinguish between normal handle and exception (extrema).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__f5
      • setF5

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

        Field Documentation

        Blender Source Code

        F5: used for auto handle to distinguish between normal handle and exception (extrema).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__f5
      • 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<BezTriple> __io__addressof()
        Instantiates a pointer on this instance.