AutoMovie API
    Preparing search index...

    Function bindRecoverySavedSectionCuts

    • Compare a complete saved raw-contour population with one fresh exact cut. Address sets and admitted closure verify contour identity only; curve names and output indices remain caller-attested references. Newly emitted exact faces are used even when the saved artifact retained broad incidence only.

      Parameters

      • input: {
            checkpoint: () => void;
            contours: Polyline[];
            prepared: {
                aliases: Map<string, number>;
                canon: Int32Array;
                edgeKey: (a: number, b: number) => string;
                faceEdges: Map<string, Set<number>>;
                mesh: {
                    canon: Int32Array;
                    triangles: [number, number, number][];
                    vertices: [number, number, number][];
                };
                vertexFaces: Map<number, Set<number>>;
            };
            saved: IAutoMovieRecoverySavedSection;
        }
        • checkpoint: () => void

          Synchronous cooperative cancellation/work checkpoint; a thrown exception aborts the current operation.

        • contours: Polyline[]

          Every raw plane-cut contour, including open paths, contacts and unsupported junction chains.

        • prepared: {
              aliases: Map<string, number>;
              canon: Int32Array;
              edgeKey: (a: number, b: number) => string;
              faceEdges: Map<string, Set<number>>;
              mesh: {
                  canon: Int32Array;
                  triangles: [number, number, number][];
                  vertices: [number, number, number][];
              };
              vertexFaces: Map<number, Set<number>>;
          }

          Source incidence or chart preparation shared by the operation; its borrowed arrays remain stable for the pass.

          • aliases: Map<string, number>

            Exact-position serialization key to the first admitted canonical vertex index.

          • canon: Int32Array

            One in-range canonical connectivity index per original vertex; this does not move source coordinates.

          • edgeKey: (a: number, b: number) => string

            Returns a deterministic undirected key from two connectivity indices without comparing positions.

          • faceEdges: Map<string, Set<number>>

            Canonical undirected edge identity to original incident-face set.

          • mesh: {
                canon: Int32Array;
                triangles: [number, number, number][];
                vertices: [number, number, number][];
            }

            Registered source mesh borrowing its original positions and faces with the admitted canonical connectivity array.

            • canon: Int32Array

              One in-range canonical connectivity index per original vertex; this does not move source coordinates.

            • triangles: [number, number, number][]

              Oriented triangle vertex-index triples addressing the paired position array; indices are not control IDs.

            • vertices: [number, number, number][]

              Physical vertex positions in the registered millimetre chart, aligned with the supplied triangle indices.

          • vertexFaces: Map<number, Set<number>>

            Original vertex index to incident original-face set; borrowed for this observation pass.

        • saved: IAutoMovieRecoverySavedSection

          Caller-verified saved section whose full raw contour population is bound by this observation.

      Returns
          | {
              status: "bound";
              value: {
                  coordinateMm: number;
                  observationIdentity: string;
                  rawContours: {
                      closed: boolean;
                      contourIndex: number;
                      observationCount: number;
                      savedClosureCompared: boolean;
                  }[];
                  sourceLineage: IAutoMovieRecoverySourceLineage[];
              };
          }
          | { diagnostic: string; status: "refused" }

      • {
            status: "bound";
            value: {
                coordinateMm: number;
                observationIdentity: string;
                rawContours: {
                    closed: boolean;
                    contourIndex: number;
                    observationCount: number;
                    savedClosureCompared: boolean;
                }[];
                sourceLineage: IAutoMovieRecoverySourceLineage[];
            };
        }
        • status: "bound"

          Closed outcome discriminator; unavailable or ambiguous arms retain diagnostics instead of fabricated successful data.

        • value: {
              coordinateMm: number;
              observationIdentity: string;
              rawContours: {
                  closed: boolean;
                  contourIndex: number;
                  observationCount: number;
                  savedClosureCompared: boolean;
              }[];
              sourceLineage: IAutoMovieRecoverySourceLineage[];
          }

          Admitted saved-section binding value, present only on the successful outcome arm.

          • coordinateMm: number

            Original signed plane coordinate, millimetres.

          • observationIdentity: string

            Caller-verified saved artifact identity, retained without hashing.

          • rawContours: {
                closed: boolean;
                contourIndex: number;
                observationCount: number;
                savedClosureCompared: boolean;
            }[]

            Raw closure and sample count; failed saved fits have no closure claim to compare.

          • sourceLineage: IAutoMovieRecoverySourceLineage[]

            Fresh broad/exact source addresses with unchanged symbolic publication fields.

      • { diagnostic: string; status: "refused" }
        • diagnostic: string

          Reason this particular result is unavailable or qualified only within a stated numerical scope.

        • status: "refused"

          Closed outcome discriminator; unavailable or ambiguous arms retain diagnostics instead of fabricated successful data.