AutoMovie API
    Preparing search index...

    Function physicalHullErode

    • The vertices of a convex hull shrunk inward by a depth: every face plane moves inward by depth, and the eroded solid is what remains behind all of them.

      A vertex of the eroded solid is the meeting point of three moved planes that lies behind every other moved plane, so each triple of faces is solved by Cramer's rule and kept when it does.

      Parameters

      • points: readonly IAutoMovieVector3[]

        The hull's shape-local points, metres, spanning a volume.

      • depth: number

        The inward offset, metres; below the hull's depth about its centre, so the eroded solid keeps a volume.

      Returns IAutoMovieVector3[]

      The eroded solid's vertices in the points' frame.

      When the depth leaves no volume.