AutoMovie API
    Preparing search index...

    Variable builtOutlineIsClosedConst

    builtOutlineIsClosed: (
        outline: readonly IAutoMoviePlanarPoint[],
        least: number,
        path: string,
        label: string,
        collector: IAutoMovieViolationCollector,
    ) => boolean = ...

    Whether a closed planar outline names enough distinct, finite corners, reporting the first reason it does not.

    The minimum corner count differs by what the outline may carry: a straight face needs three, while an outline whose edges may bulge needs only two, because a full circle is two half-turn arcs and demanding a third corner would outlaw a round oculus for no geometric reason. Then every coordinate must be finite, each non-finite one reported at <path>[i].<axis>, and no two consecutive corners, the closing pair included, may lie within BUILT_PLANAR_EPSILON (1e-9 m) of each other. A failed count or a non-finite corner stops before the later test, which could not be computed.

    Type Declaration

      • (
            outline: readonly IAutoMoviePlanarPoint[],
            least: number,
            path: string,
            label: string,
            collector: IAutoMovieViolationCollector,
        ): boolean
      • Parameters

        • outline: readonly IAutoMoviePlanarPoint[]

          Closed ring of corners, in metres.

        • least: number

          Fewest corners the outline may have.

        • path: string

          Violation path of the outline.

        • label: string

          Name of the outline in the messages.

        • collector: IAutoMovieViolationCollector

          Sink that receives the violations.

        Returns boolean

        True when the outline passed every check.