|
@@ -677,6 +677,12 @@ class SectionDesignerApp(tk.Tk):
|
|
|
# Validar valores básicos
|
|
# Validar valores básicos
|
|
|
if H <= 0 or b <= 0 or tf <= 0 or tw <= 0:
|
|
if H <= 0 or b <= 0 or tf <= 0 or tw <= 0:
|
|
|
return
|
|
return
|
|
|
|
|
+
|
|
|
|
|
+ if tf > H/2 or tw > b:
|
|
|
|
|
+ tf = min(tf, H/2)
|
|
|
|
|
+ tw = min(tw, b)
|
|
|
|
|
+ self.entry_tf.set(f"{tf:.6f}")
|
|
|
|
|
+ self.entry_tw.set(f"{tw:.6f}")
|
|
|
|
|
|
|
|
# Generar puntos y calcular
|
|
# Generar puntos y calcular
|
|
|
self.current_points = generate_ipe_points(H, b, tf, tw)
|
|
self.current_points = generate_ipe_points(H, b, tf, tw)
|