Move the vertices (3, n), keeping the faces and edges (as many as before; e.g. a surface changing in time).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Polyhedron), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | vertices(:,:) |
(3, n), frame coordinates (as many as before) |
subroutine set_vertices(self, vertices) class(Polyhedron), intent(inout) :: self real(wp), intent(in) :: vertices(:,:) !! (3, n), frame coordinates (as many as before) if (size(vertices, 2) /= size(self%v, 2)) then write(*, '(a)') 'vkframes: Polyhedron '//self%name()//': set_vertices needs as many vertices as before' return end if self%v = vertices call make_polyhedron(self) end subroutine set_vertices