Mirror facet given matrix (of mirroring).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(file_stl_object), | intent(inout) | :: | self | File STL. |
||
| real(kind=R8P), | intent(in) | :: | matrix(3,3) | Mirroring matrix. |
||
| logical, | intent(in), | optional | :: | recompute_metrix | Sentinel to activate metrix recomputation. |
pure subroutine mirror_by_matrix(self, matrix, recompute_metrix)
!< Mirror facet given matrix (of mirroring).
class(file_stl_object), intent(inout) :: self !< File STL.
real(R8P), intent(in) :: matrix(3,3) !< Mirroring matrix.
logical, intent(in), optional :: recompute_metrix !< Sentinel to activate metrix recomputation.
integer(I4P) :: f !< Counter.
if (self%facets_number>0) then
do f=1, self%facets_number
call self%facet(f)%mirror(matrix=matrix, recompute_metrix=recompute_metrix)
enddo
endif
endsubroutine mirror_by_matrix