plane Derived Type

type, public, extends(sdf_base) :: plane

Plane SDF


Components

Type Visibility Attributes Name Initial
type(vector), public :: a
integer, public :: layer

Layer ID of SDF

type(opticalProp_t), public :: optProps

Optical property of the SDF

real(kind=wp), public :: transform(4,4)

Transform to apply to SDF.


Constructor

public interface plane

Interface to plane SDF initialising function

  • private function plane_init(a, optProp, layer, transform) result(out)

    Initalising function for plane SDF.

    Arguments

    Type IntentOptional Attributes Name
    type(vector), intent(in) :: a

    Plane normal. must be normalised

    type(opticalProp_t), intent(in) :: optProp

    Optical properties of the SDF

    integer, intent(in) :: layer

    ID number of sdf

    real(kind=wp), intent(in), optional :: transform(4,4)

    Optional transform to apply to SDF

    Return Value type(plane)


Type-Bound Procedures

procedure, public :: evaluate => evaluate_plane

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

    Evaluation function for Plane SDF.

    Arguments

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

    vector position to evaluate SDF at

    Return Value real(kind=wp)

Source Code

    type, extends(sdf_base) :: plane
        type(vector) :: a
        contains
        procedure :: evaluate => evaluate_plane
    end type plane