def addCylinder(faces, inradius, sides, topOverBottom, vertexes):
 polygonBottom = euclidean.getComplexPolygonByComplexRadius(complex(inradius.x, inradius.y), sides)
 polygonTop = polygonBottom
 if (topOverBottom <= 0.0):
  polygonTop = [complex()]
 elif (topOverBottom != 1.0):
  polygonTop = euclidean.getComplexPathByMultiplier(topOverBottom, polygonTop)
 bottomTopPolygon = [triangle_mesh.getAddIndexedLoop(polygonBottom, vertexes, (- inradius.z)), triangle_mesh.getAddIndexedLoop(polygonTop, vertexes, inradius.z)]
 triangle_mesh.addPillarByLoops(faces, bottomTopPolygon)

def addCylinder ( faces , inradius , sides , topOverBottom , vertexes ) : polygonBottom = euclidean . getComplexPolygonByComplexRadius ( complex ( inradius . x , inradius . y ) , sides ) polygonTop = polygonBottom if ( topOverBottom <= 0.0 ) : polygonTop = [ complex ( ) ] elif ( topOverBottom != 1.0 ) : polygonTop = euclidean . getComplexPathByMultiplier ( topOverBottom , polygonTop ) bottomTopPolygon = [ triangle_mesh . getAddIndexedLoop ( polygonBottom , vertexes , ( - inradius . z ) ) , triangle_mesh . getAddIndexedLoop ( polygonTop , vertexes , inradius . z ) ] triangle_mesh . addPillarByLoops ( faces , bottomTopPolygon )
add cylinder by inradius .