Envelope generation control of confined complex surface featuring internal structured compliant tool