I am trying to create planes at specific locations, locations where undercut occurs. I wrote a macro in which I manually gave values of face and edges and created planes. But what I need a general algorithm that will create planes along any of 3 directions, defending on input direction given by us, searches for undercuts in model, if found, create a plane at the starting and ending of the undercut. And if no undercut is found, then create planes at equal intervals aincluding planes on extreme faces in the given direction. I have uploaded the image of the sample which will clear my problem.
I am trying to write general algo for the creation of planes. Actually I am working on code that will get best possible parting line for any model. Please help me out guys.