# Forming complex tanks in MAXSURF (and MOSES) Stability

The compartment forming works by Boolean operations on closed contours. The compartment is a series of sections calculated at intervals along the length of the compartment. At each longitudinal position, up to three contours are formed and intersected to give the compartment section:

1. Hull contour
2. Box contour (from the top; bottom; port; stbd extents, interpolated if necessary)
3. Boundary surface contour (optional).

With an unclosed contour, e.g. a line, it is not possible to determine which part of the hull contour defined the compartment.

The problem you are experiencing is due to the boundary surfaces not defining any area – they define just a flat line.

...

Related
Recommended