This is a slightly more complex example of the basic collision avoidance example. It uses a Constant Z toolpath on the bucket.dgk model in the Examples folder. The toolpath is limited to the inside of the bucket.
Then a lean angle is applied so that the tool holder just clears the model.
As the toolpath proceeds down the model, the lean angle changes so that the tool holder just clears the model:
And so on down the model: