Parent hamiltonians and convex sets