def getEmptyZLoops(archivableObjects, importRadius, shouldPrintWarning, z, zoneArrangement):
 emptyZ = zoneArrangement.getEmptyZ(z)
 visibleObjects = evaluate.getVisibleObjects(archivableObjects)
 visibleObjectLoopsList = boolean_solid.getVisibleObjectLoopsList(importRadius, visibleObjects, emptyZ)
 loops = euclidean.getConcatenatedList(visibleObjectLoopsList)
 if euclidean.isLoopListIntersecting(loops):
  loops = boolean_solid.getLoopsUnion(importRadius, visibleObjectLoopsList)
  if shouldPrintWarning:
   print 'Warning, the triangle mesh slice intersects itself in getExtruderPaths in boolean_geometry.'
   print 'Something will still be printed, but there is no guarantee that it will be the correct shape.'
   print 'Once the gcode is saved, you should check over the layer with a z of:'
   print z
 return loops

def getEmptyZLoops ( archivableObjects , importRadius , shouldPrintWarning , z , zoneArrangement ) : emptyZ = zoneArrangement . getEmptyZ ( z ) visibleObjects = evaluate . getVisibleObjects ( archivableObjects ) visibleObjectLoopsList = boolean_solid . getVisibleObjectLoopsList ( importRadius , visibleObjects , emptyZ ) loops = euclidean . getConcatenatedList ( visibleObjectLoopsList ) if euclidean . isLoopListIntersecting ( loops ) : loops = boolean_solid . getLoopsUnion ( importRadius , visibleObjectLoopsList ) if shouldPrintWarning : print 'Warning, the triangle mesh slice intersects itself in getExtruderPaths in boolean_geometry.' print 'Something will still be printed, but there is no guarantee that it will be the correct shape.' print 'Once the gcode is saved, you should check over the layer with a z of:' print z return loops
get loops at empty z level .