core: fix bug in buildConvexRepresentation

12 jobs for pr/241 in 27 minutes and 7 seconds (queued for 7 seconds)