AutoMovie API
    Preparing search index...

    Function measureAutoMovieInspectionDefects

    • Measure a mesh's defects and return them as marks lying on the mesh as it is posed.

      Every mesh has the quantity, so the inspection measures it itself on the meshes it draws, through the engine's measureAutoMovieMeshDefects on the mesh's stored positions. An edge defect becomes a segments mark of its two vertices and a triangle defect a closed polyline of its three. A defect's kind is defect/<engine kind>, such as defect/open, its path is the mesh's path followed by its kind and its ordinal among that kind on the mesh, such as panel/defect/open/2, and its label and colour are those AUTO_MOVIE_INSPECTION_KINDS gives the kind, such as open edge in red.

      Only the kinds asked are returned, and sliver is the aspect limit the engine needs for slivers. measured caches the engine's answer by geometry, so meshes that share one are measured once. Each mesh still gets its own marks, because their coordinates are read from that mesh's pose: morph targets and linear-blend skinning included, a dual-quaternion skin by its linear-blend pose.

      An engine refusal of the buffers is rethrown naming the mesh's path.

      Parameters

      • props: {
            kinds: ReadonlySet<IAutoMovieMeshDefect.Kind>;
            measured: Map<
                BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
                IAutoMovieMeshDefect[],
            >;
            mesh: Mesh;
            path: string;
            sliver: number | null;
        }
        • kinds: ReadonlySet<IAutoMovieMeshDefect.Kind>

          The engine kinds to return.

        • measured: Map<
              BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
              IAutoMovieMeshDefect[],
          >

          The engine's defects by geometry, shared across the meshes of one inspection.

        • mesh: Mesh

          The mesh to measure, drawn and with a position buffer.

        • path: string

          The mesh's inspection path.

        • sliver: number | null

          Sliver aspect limit, or null when slivers are not measured.

      Returns IAutoMovieInspectionMeasured