sdf_evaluate Function

private pure elemental function sdf_evaluate(this, pos) result(res)

Evaluate the SDF at a given position.

Type Bound

sdf

Arguments

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

Return Value real(kind=wp)


Source Code

    pure elemental function sdf_evaluate(this, pos) result(res)
        !! Evaluate the SDF at a given position.
        class(sdf), intent(in) :: this
        type(vector), intent(in) :: pos
        real(kind=wp) :: res

        res = this%value%evaluate(pos)

    end function sdf_evaluate