public void CoreBuildingTest() { var model = Model.FromJson(System.IO.File.ReadAllText("../../../../../../TestOutput/Building-01.json")); var inputs = new CoreByLevelsInputs(1.0, 45.0, "", "", new Dictionary <string, string>(), "", "", ""); var outputs = CoreByLevels.Execute(new Dictionary <string, Model> { { "Levels", model } }, inputs); System.IO.File.WriteAllText("../../../../../../TestOutput/CoreBuilding.json", outputs.model.ToJson()); outputs.model.ToGlTF("../../../../../../TestOutput/CoreBuilding.glb"); }
public void CoreBuildingTest() { var model = Model.FromJson(System.IO.File.ReadAllText(INPUT + "Building-01.json")); var inputs = new CoreByLevelsInputs( setback: 1.0, rotation: 45.0, "", "", new Dictionary <string, string>(), "", "", ""); var outputs = CoreByLevels.Execute(new Dictionary <string, Model> { { "Levels", model } }, inputs); System.IO.File.WriteAllText(OUTPUT + "CoreBuilding.json", outputs.Model.ToJson()); outputs.Model.AddElements(model.Elements.Values); outputs.Model.ToGlTF(OUTPUT + "CoreBuilding.glb"); }