From 2e82745242856577fbe4c2912b23bb4f0c483b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Luis=20Cerc=C3=B3s=20Pita?= Date: Mon, 20 May 2013 12:16:18 -0400 Subject: [PATCH] Prevented some errors in the floating coefficient computation --- src/Mod/Ship/shipHydrostatics/Tools.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Ship/shipHydrostatics/Tools.py b/src/Mod/Ship/shipHydrostatics/Tools.py index 0929eeef3..09123204f 100644 --- a/src/Mod/Ship/shipHydrostatics/Tools.py +++ b/src/Mod/Ship/shipHydrostatics/Tools.py @@ -253,6 +253,10 @@ def FloatingArea(ship, draft, trim): p = Vector(-1.5*L, -1.5*B, bbox.ZMin - 1.0) box = Part.makeBox(3.0*L, 3.0*B, - bbox.ZMin + 1.0, p) # Compute common part with ship + maxX = bbox.XMin + minX = bbox.XMax + maxY = bbox.YMin + minY = bbox.YMax for s in shape.Solids: # Get solids intersection try: