This function checks intesection of solid cube and ellipsoid
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_ellipsoid_type), | intent(in) | :: | ellipsoid | |||
type(tem_cube_type), | intent(in) | :: | cube |
function tem_ellipsoidCubeOverlap(ellipsoid, cube) result(overlap)
! --------------------------------------------------------------------------!
!inferface variables
type(tem_ellipsoid_type), intent(in) :: ellipsoid !< spacer geometry data
type(tem_cube_type), intent(in) :: cube
logical :: overlap !< return value
! --------------------------------------------------------------------------!
if(ellipsoid%only_surface) then
overlap = hollowellipsoidCubeOverlap(ellipsoid, cube)
else
overlap = solidellipsoidCubeOverlap(ellipsoid, cube)
endif
end function tem_ellipsoidCubeOverlap