todo remove invisible parts; support crossed figures