Evaluate the SDF at a given position.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(sdf), | intent(in) | :: | this | |||
type(vector), | intent(in) | :: | pos |
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