"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ig_utilities_1 = require("@intelligentgraphics/ig.utilities");
exports.createVector3 = function () { return ({
    X: 0,
    Y: 0,
    Z: 0,
}); };
exports.createTransform = function () { return ({
    Position: exports.createVector3(),
    Rotation: exports.createVector3(),
    Scale: {
        X: 1,
        Y: 1,
        Z: 1,
    },
}); };
exports.OBJECT_ROOT_PATH = ".";
exports.createObject = function (path) { return ({
    Path: path,
    Interactor: undefined,
    Selectable: "Parent",
    OrderNumber: undefined,
    Points: undefined,
    Geometry: undefined,
    GeometryParameters: undefined,
    Layer: undefined,
    Product: undefined,
    Material: undefined,
    MaterialCategory: undefined,
    Transform: undefined,
    InteractorParameters: undefined,
    Evaluator: undefined,
    EvaluatorParameters: undefined,
    CustomProperties: undefined,
    Categories: undefined,
    Deformation: undefined,
}); };
exports.createScene = function () { return ({
    Format: "1.0",
    Geometry: "OBJ",
    Packages: [],
    Objects: [],
    Geometries: {},
    GeometryNormalMaps: {},
    GeometryDeformations: {},
    GeometryPreviews: {},
    Categories: {},
    MaterialAssignments: {},
    Materials: {},
    Scripts: [],
}); };
exports.determineSceneUpdates = function (scene) {
    if (!ig_utilities_1.isNullOrUndefined(scene.Updates) && scene.Updates.length > 0) {
        return scene.Updates;
    }
    // pre-Updates-property material only update
    if (scene.Objects === undefined || scene.Objects.length === 0) {
        return ["Material"];
    }
};
