The result returned from a ModelConverter.convert operation.

interface ModelConverterResult {
    data: Data;
    errors: string[];
    inputs: { [key: string]: ModelConverterResultInput };
    inspection?: {
        bySceneModel: {
            [sceneModelId: string]: ModelConverterResultInspection;
        };
    };
    modelConverter: ModelConverter;
    outputs: { [key: string]: ModelConverterResultOutput };
    pipeline: string;
    scene: Scene;
}

Properties

data: Data

The data model produced by the conversion.

errors: string[]

Any errors that occurred during the conversion.

inputs: { [key: string]: ModelConverterResultInput }

The inputs given to the conversion, keyed by input name as defined in the pipeline.

inspection?: {
    bySceneModel: { [sceneModelId: string]: ModelConverterResultInspection };
}

Inspection results, present when the pipeline had an inspect block enabled. Keyed by SceneModel id — a SceneModel fed by multiple inputs is inspected once after processInputs completes.

If inspect.failOnErrors triggered, outputs is empty and the matching SceneModel entry's report.errors carries the reason.

modelConverter: ModelConverter

The converter that created these results.

outputs: { [key: string]: ModelConverterResultOutput }

The outputs generated by the conversion, keyed by output name as defined in the pipeline.

pipeline: string

The pipeline identifier used during the conversion.

scene: Scene

The scene model produced by the conversion.