Prevented some errors in the floating coefficient computation
This commit is contained in:
parent
970c6a7fad
commit
9f2b514ae6
|
@ -253,6 +253,10 @@ def FloatingArea(ship, draft, trim):
|
||||||
p = Vector(-1.5*L, -1.5*B, bbox.ZMin - 1.0)
|
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)
|
box = Part.makeBox(3.0*L, 3.0*B, - bbox.ZMin + 1.0, p)
|
||||||
# Compute common part with ship
|
# Compute common part with ship
|
||||||
|
maxX = bbox.XMin
|
||||||
|
minX = bbox.XMax
|
||||||
|
maxY = bbox.YMin
|
||||||
|
minY = bbox.YMax
|
||||||
for s in shape.Solids:
|
for s in shape.Solids:
|
||||||
# Get solids intersection
|
# Get solids intersection
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user