def setTopOverBottomByRadius(derivation, endZ, radius, startZ):
 angleDegrees = evaluate.getEvaluatedFloat(None, derivation.elementNode, 'angle')
 if (angleDegrees != None):
  derivation.topOverBottom = cylinder.getTopOverBottom(math.radians(angleDegrees), endZ, complex(radius, radius), startZ)

def setTopOverBottomByRadius ( derivation , endZ , radius , startZ ) : angleDegrees = evaluate . getEvaluatedFloat ( None , derivation . elementNode , 'angle' ) if ( angleDegrees != None ) : derivation . topOverBottom = cylinder . getTopOverBottom ( math . radians ( angleDegrees ) , endZ , complex ( radius , radius ) , startZ )
set the derivation topoverbottom by the angle of the elementnode .