def getGeometryOutputByNestedRing(derivation, nestedRing, portionDirections):
 loopLists = getLoopListsByPath(derivation, None, nestedRing.vector3Loop, portionDirections)
 outsideOutput = triangle_mesh.getPillarsOutput(loopLists)
 if (len(nestedRing.innerNestedRings) < 1):
  return outsideOutput
 shapes = [outsideOutput]
 for nestedRing.innerNestedRing in nestedRing.innerNestedRings:
  loopLists = getLoopListsByPath(derivation, 1.000001, nestedRing.innerNestedRing.vector3Loop, portionDirections)
  shapes.append(triangle_mesh.getPillarsOutput(loopLists))
 return {'difference': {'shapes': shapes}}

def getGeometryOutputByNestedRing ( derivation , nestedRing , portionDirections ) : loopLists = getLoopListsByPath ( derivation , None , nestedRing . vector3Loop , portionDirections ) outsideOutput = triangle_mesh . getPillarsOutput ( loopLists ) if ( len ( nestedRing . innerNestedRings ) < 1 ) : return outsideOutput shapes = [ outsideOutput ] for nestedRing . innerNestedRing in nestedRing . innerNestedRings : loopLists = getLoopListsByPath ( derivation , 1.000001 , nestedRing . innerNestedRing . vector3Loop , portionDirections ) shapes . append ( triangle_mesh . getPillarsOutput ( loopLists ) ) return { 'difference' : { 'shapes' : shapes } }
get geometry output by sorted .