def getSVGByLoopLayers(addLayerTemplateToSVG, rotatedLoopLayers, svgCarving):
 if (len(rotatedLoopLayers) < 1):
  return ''
 decimalPlacesCarried = max(0, (2 - int(math.floor(math.log10(svgCarving.layerThickness)))))
 svgWriter = SVGWriter(addLayerTemplateToSVG, svgCarving, decimalPlacesCarried)
 return svgWriter.getReplacedSVGTemplate(svgCarving.fileName, 'basic', rotatedLoopLayers, svgCarving.getFabmetheusXML())

def getSVGByLoopLayers ( addLayerTemplateToSVG , rotatedLoopLayers , svgCarving ) : if ( len ( rotatedLoopLayers ) < 1 ) : return '' decimalPlacesCarried = max ( 0 , ( 2 - int ( math . floor ( math . log10 ( svgCarving . layerThickness ) ) ) ) ) svgWriter = SVGWriter ( addLayerTemplateToSVG , svgCarving , decimalPlacesCarried ) return svgWriter . getReplacedSVGTemplate ( svgCarving . fileName , 'basic' , rotatedLoopLayers , svgCarving . getFabmetheusXML ( ) )
get the svg text .