Translate facet given vectorial delta.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(facet_object), | intent(inout) | :: | self | Facet. |
||
| type(vector_R8P), | intent(in) | :: | delta | Translation delta. |
||
| logical, | intent(in), | optional | :: | recompute_metrix | Sentinel to activate metrix recomputation. |
elemental subroutine translate(self, delta, recompute_metrix)
!< Translate facet given vectorial delta.
class(facet_object), intent(inout) :: self !< Facet.
type(vector_R8P), intent(in) :: delta !< Translation delta.
logical, intent(in), optional :: recompute_metrix !< Sentinel to activate metrix recomputation.
self%vertex_1 = self%vertex_1 + delta
self%vertex_2 = self%vertex_2 + delta
self%vertex_3 = self%vertex_3 + delta
if (present(recompute_metrix)) then
if (recompute_metrix) call self%compute_metrix
endif
endsubroutine translate