AutoMovie API
    Preparing search index...

    Variable polygonIsSimpleConst

    polygonIsSimple: (polygon: readonly IAutoMoviePlanarPoint[]) => boolean = ...

    Whether no two non-adjacent edges of a closed ring touch.

    Building outlines require a simple boundary, rather than selecting a fill rule for self-crossings. Adjacent edges are skipped because their shared corner is expected; consequently this function does not detect adjacent backtracking or overlapping adjacent segments.

    Contact uses segmentsTouch's scale-relative PLANAR_EPSILON; a vertex on a non-adjacent edge counts as touching. Point count, adjacent degeneracy and area are separate caller checks: even a two- or three-point ring returns true here if no non-adjacent pair exists.

    Type Declaration

      • (polygon: readonly IAutoMoviePlanarPoint[]): boolean
      • Parameters

        Returns boolean

        True when no two non-adjacent edges share a point.