The algorithm is able to detect which components and scrap elements of the sheet metal might bounce and position themselves on top of nearby contours or become rotated, which would pose a risk to the movements of the cutting head. When it detects these components and elements, the system automatically assigns one or more microcuts. As the cutting of the sheet metal advances, the system can define a safe cutting path, allowing the user to choose to cut parts as soon as possible or at the end of the sheet metal machining. Also, if this last finishing process for minicuts comes into conflict with potentially unstable contours, the system moves automatically to an area without conflict.