brepjs API Reference
    Preparing search index...

    Interface PrincipalBoundingBox

    A box aligned to a solid's principal axes of inertia.

    interface PrincipalBoundingBox {
        axes: readonly [Vec3, Vec3, Vec3];
        center: Vec3;
        size: Vec3;
    }
    Index
    axes: readonly [Vec3, Vec3, Vec3]

    Box axes: orthonormal, right-handed, ordered by decreasing extent.

    center: Vec3

    Box center in world coordinates.

    size: Vec3

    Full edge lengths along axes, largest first.