def addNegativesPositives(derivation, negatives, paths, positives):
 for path in paths:
  endMultiplier = None
  normal = euclidean.getNormalByPath(path)
  if (normal.dot(derivation.normal) < 0.0):
   endMultiplier = 1.000001
  loopListsByPath = getLoopListsByPath(derivation, endMultiplier, path)
  geometryOutput = triangle_mesh.getPillarsOutput(loopListsByPath)
  if (endMultiplier == None):
   positives.append(geometryOutput)
  else:
   negatives.append(geometryOutput)

def addNegativesPositives ( derivation , negatives , paths , positives ) : for path in paths : endMultiplier = None normal = euclidean . getNormalByPath ( path ) if ( normal . dot ( derivation . normal ) < 0.0 ) : endMultiplier = 1.000001 loopListsByPath = getLoopListsByPath ( derivation , endMultiplier , path ) geometryOutput = triangle_mesh . getPillarsOutput ( loopListsByPath ) if ( endMultiplier == None ) : positives . append ( geometryOutput ) else : negatives . append ( geometryOutput )
add pillars output to negatives and positives .