diff --git a/ExampleFiles/Components/Display1d.gh b/ExampleFiles/Components/Display1d.gh index e672418f7..91a356aa3 100644 Binary files a/ExampleFiles/Components/Display1d.gh and b/ExampleFiles/Components/Display1d.gh differ diff --git a/ExampleFiles/Components/Display2d.gh b/ExampleFiles/Components/Display2d.gh index dd1fa40fb..daf7f4c37 100644 Binary files a/ExampleFiles/Components/Display2d.gh and b/ExampleFiles/Components/Display2d.gh differ diff --git a/ExampleFiles/Components/Display3d.gh b/ExampleFiles/Components/Display3d.gh index 2a45b12da..0e68e8c68 100644 Binary files a/ExampleFiles/Components/Display3d.gh and b/ExampleFiles/Components/Display3d.gh differ diff --git a/GsaGH/Components/6_Display/Preview3dSections.cs b/GsaGH/Components/6_Display/Preview3dSections.cs index 20c2c5037..837130af3 100644 --- a/GsaGH/Components/6_Display/Preview3dSections.cs +++ b/GsaGH/Components/6_Display/Preview3dSections.cs @@ -86,10 +86,8 @@ protected override void SolveInternal(IGH_DataAccess da) { if (da.GetDataList(0, ghTypes)) { var elem1ds = new List(); var elem2ds = new List(); - var elem3ds = new List(); var mem1ds = new List(); var mem2ds = new List(); - var mem3ds = new List(); var models = new List(); var lists = new List(); for (int i = 0; i < ghTypes.Count; i++) { @@ -117,10 +115,6 @@ protected override void SolveInternal(IGH_DataAccess da) { elem2ds.Add(element2dGoo.Value); break; - case GsaElement3dGoo element3dGoo: - elem3ds.Add(element3dGoo.Value); - break; - case GsaMember1dGoo member1dGoo: mem1ds.Add(member1dGoo.Value); break; @@ -129,10 +123,6 @@ protected override void SolveInternal(IGH_DataAccess da) { mem2ds.Add(member2dGoo.Value); break; - case GsaMember3dGoo member3dGoo: - mem3ds.Add(member3dGoo.Value); - break; - default: { string type = ghTyp.Value.GetType().ToString(); type = type.Replace("GsaGH.Parameters.", string.Empty); @@ -161,10 +151,6 @@ protected override void SolveInternal(IGH_DataAccess da) { mem2ds = null; } - if (!(mem3ds.Count > 0)) { - mem2ds = null; - } - if (models is null & elem1ds is null & elem2ds is null & mem1ds is null & mem2ds is null) { this.AddRuntimeWarning("Input parameter failed to collect data"); return; @@ -181,7 +167,7 @@ protected override void SolveInternal(IGH_DataAccess da) { } // Assemble model - var assembly = new ModelAssembly(model, lists, elem1ds, elem2ds, elem3ds, mem1ds, mem2ds, mem3ds, _lengthUnit); + var assembly = new ModelAssembly(model, lists, elem1ds, elem2ds, mem1ds, mem2ds, _lengthUnit); GsaAPI.Model previewModel = assembly.GetModel(); var steps = new List { diff --git a/GsaGH/Helpers/Assembly/ModelAssembly.cs b/GsaGH/Helpers/Assembly/ModelAssembly.cs index 888fd95be..796482edf 100644 --- a/GsaGH/Helpers/Assembly/ModelAssembly.cs +++ b/GsaGH/Helpers/Assembly/ModelAssembly.cs @@ -54,11 +54,11 @@ internal ModelAssembly(GsaElement1d element) { // assemble for preview internal ModelAssembly(GsaModel model, List lists, List elem1ds, - List elem2ds, List elem3ds, List mem1ds, - List mem2ds, List mem3ds, LengthUnit modelUnit) { + List elem2ds, List mem1ds, + List mem2ds, LengthUnit modelUnit) { SetupModel(model, modelUnit); - ConvertElements(elem1ds, elem2ds, elem3ds); - ConvertMembers(mem1ds, mem2ds, mem3ds); + ConvertElements(elem1ds, elem2ds, null); + ConvertMembers(mem1ds, mem2ds, null); ConvertLists(lists); AssembleNodesElementsMembersAndLists(); }