The faces' opacity (0 to 1; default 1, opaque): below 1 translucent.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Polyhedron), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | opacity |
0 to 1 (1: opaque) |
subroutine poly_set_opacity(self, opacity) class(Polyhedron), intent(inout) :: self real(wp), intent(in) :: opacity !! 0 to 1 (1: opaque) self%opacity_ = max(0.0_wp, min(1.0_wp, opacity)) call make_polyhedron(self) end subroutine poly_set_opacity