public void LevelsByEnvelopeTest() { var inputs = new LevelsByEnvelopeInputs(6.0, 4.0, 5.0, "", "", new Dictionary <string, string>(), "", "", ""); var model = Model.FromJson(System.IO.File.ReadAllText("../../../../../../TestOutput/EnvelopeBySketch.json")); var outputs = LevelsByEnvelope.Execute(new Dictionary <string, Model> { { "Envelope", model } }, inputs); System.IO.File.WriteAllText("../../../../../../TestOutput/LevelsByEnvelope.json", outputs.model.ToJson()); outputs.model.ToGlTF("../../../../../../TestOutput/LevelsByEnvelope.glb"); }
public void LevelsByEnvelopeTest() { var inputs = new LevelsByEnvelopeInputs(3.0, 3.0, 3.0, "", "", new Dictionary <string, string>(), "", "", ""); var model = Model.FromJson(System.IO.File.ReadAllText(INPUT + "EnvelopeBySketch.json")); var outputs = LevelsByEnvelope.Execute(new Dictionary <string, Model> { { "Envelope", model } }, inputs); System.IO.File.WriteAllText(OUTPUT + "LevelsByEnvelope.json", outputs.Model.ToJson()); outputs.Model.AddElements(model.Elements.Values); outputs.Model.ToGlTF(OUTPUT + "LevelsByEnvelope.glb"); }