Machines for forming the toe part or heel part of shoes, with or without use of heat