Automatic Beveling Works by KD Program