Constrain tool paths to the material size,

It is difficult to deal with sizing for STL files, would it be possible to keep toolpaths only where workpiece exists.
Am looking at a carve with multiple toolpaths off the materials, air carving takes up lots of time.
Thank you.