Shading smooth across the vertices (normals averaged over the faces around each: a curved surface, e.g. a grid's), or flat faces (the default: a polyhedron's).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Polyhedron), | intent(inout) | :: | self | |||
| logical, | intent(in) | :: | smooth |
true: smooth shading; false: flat faces |
subroutine set_smooth(self, smooth) class(Polyhedron), intent(inout) :: self logical, intent(in) :: smooth !! true: smooth shading; false: flat faces self%smooth_ = smooth call make_polyhedron(self) end subroutine set_smooth