private void RenderModel() { // Get inputs GetInput(); // If inputs are valid, get model if (ValidInput()) { model = GetModel(); } // If config file is not used, create a list to store current model rendering configurations if (!load_config) { list = ConfigurationList.CreateList(1); list.ModelConfig[0] = ConfigurationList.CreateNode(); } // Set initial rendering parameters, as stored in the configuration list ResetRenderingConfigurations(); // Initialize position and rotation of camera in 2D desktop view if (initialize_fallback_camera) { ResetFallbackCamera(); } }
private void StoreConfig() { ConfigList clist = ConfigurationList.CreateList(1); clist.ModelConfig[0] = ConfigurationList.CreateNode(); string jsonOut = path_to_configs + output + ".json"; File.WriteAllText(jsonOut, JsonUtility.ToJson(clist)); }