@equinor/videx-3d
    Preparing search index...

    Function createOceanEllipseBox

    • Build a round ocean box: a circular footprint when size is a single number (or an equal [width, height] pair), or an oval/ellipse when width and height differ. Returns the same three independent geometries as createOceanBox (surface, body walls, sea bed).

      A rounded outline avoids the hard corners of a rectangular box, so a very large body of water reads as endless / gently curving (like the curvature of the earth) rather than a visibly cut rectangle.

      size is the diameter on each axis: [width (X), height (Z)] (a single number means both). The footprint is width/2 × height/2 radii, centered on origin and optionally spun by rotation degrees about +Y.

      Pair with <Ocean> by passing geometry={box.surface} plus bodyGeometry={box.body} and bedGeometry={box.bed}.

      Parameters

      Returns OceanBox