AutoMovie API
    Preparing search index...

    Interface IAutoMovieOpeningProfile

    A closed outline in the host boundary's own frame, straight edges or arcs.

    Edge i runs from outline[i] to outline[(i + 1) % outline.length]. A rectangular door is four points without bulges; a round oculus uses two points and two half-turn bulges; a round-headed arch has jambs and one bulged head edge. The outline represents these shapes without an opening-type enum.

    Validation and extents read a conservative straight ring. Signed chord-ring winding and bulge sign identify inward arcs, which retain their chords; outward arcs expand to their chord-and-sagitta rectangles. Zero-area chord rings retain rectangle expansion, including two-arc circles. The resulting ring must enclose area, remain simple, fit inside the host face and avoid other opening rings. This admission does not separately prove that authored circular arcs have no intersections. Area uses the closed circular-segment formula in floating-point arithmetic, while drawings use fixed-step chords.

    interface IAutoMovieOpeningProfile {
        bulges?: number[];
        outline: IAutoMoviePlanarPoint[];
    }
    Index
    bulges?: number[]

    Per-edge circular bulge, one entry per edge when stated at all.

    The magnitude is the polyline bulge tan(theta / 4) for included angle theta: zero is straight and one is a half turn. Its sign is mirrored from AutoCAD/DXF: positive leans left of the directed chord and follows a clockwise arc, so imported DXF bulges are negated. Each value must be finite with magnitude at most one; longer arcs require multiple edges. Ring winding determines whether each signed bulge is inward or outward for conservative bounds.

    Closed outline in host-boundary-local XY metres, at least two points.

    Two is the floor because a circle can be two arcs. The resulting bounding ring must enclose area, so two points without bulges still refuse.