The sweep-envelope differential equation algorithm for general deformed swept volumes