AutoMovie API
    Preparing search index...
    • The mass properties of parts under a total mass.

      Parameters

      • parts: readonly IAutoMovieModelPart[]

        The model's parts at rest; a part without volume (a plane) weighs nothing.

      • mass: number

        The finite positive total mass, kilograms.

      • density: Readonly<Record<string, number>> = {}

        Finite positive relative densities by part id; 1 for a part not listed.

      • shares: Readonly<Record<string, number>> = {}

        Finite nonnegative weights replacing volume times density; when used, every part should be listed. At least one solid must have positive weight.

      • cells: Table = ...

        Explicit actual convex cells by part id; omitted for primitive-only inputs. Each record must identify its visible geometry.

      Returns IProperties

      The centre of mass and the inertia about it.

      For invalid mass, density, share or dimensions, no positive solid weight, or unrepresentable local/derived mass properties.