jakke-graphics-ts
    Preparing search index...

    Function getBoundingBox3d

    • Calculates the axis-aligned bounding box for a set of 3D vertices.

      Parameters

      • pts: Vertex3d[]

        An array of Vertex3d objects representing the points in 3D space.

      Returns {
          max: { x: number; y: number; z: number };
          min: { x: number; y: number; z: number };
      }

      An object containing the minimum and maximum coordinates (min and max) of the bounding box, each with x, y, and z properties.