elongate Derived Type

type, public, extends(sdf_base) :: elongate

Elongate a SDF


Components

Type Visibility Attributes Name Initial
integer, public :: layer

Layer ID of SDF

type(opticalProp_t), public :: optProps

Optical property of the SDF

class(sdf_base), public, pointer :: prim
type(vector), public :: size
real(kind=wp), public :: transform(4,4)

Transform to apply to SDF.


Constructor

public interface elongate

  • private function elongate_init(prim, size) result(out)

    Initialise the elongate modifier for a SDF.

    Arguments

    Type IntentOptional Attributes Name
    class(sdf_base), target :: prim

    SDF to modify

    type(vector), intent(in) :: size

    Distance to elongate by

    Return Value type(elongate)


Type-Bound Procedures

procedure, public :: evaluate => eval_elongate

  • private pure elemental function eval_elongate(this, pos) result(res)

    Evaluation function for Elongate modifier.

    Arguments

    Type IntentOptional Attributes Name
    class(elongate), intent(in) :: this
    type(vector), intent(in) :: pos

    Position to evaluate the modifier at

    Return Value real(kind=wp)

Source Code

    type, extends(sdf_base) :: elongate
        type(vector) :: size
        class(sdf_base), pointer :: prim
        contains
        procedure :: evaluate => eval_elongate
    end type elongate