Skip to content

Commit d13f40b

Browse files
author
Fraser Greenroyd
authored
7.0 Deployment (#3224)
2 parents 7f7abd8 + b70bc2b commit d13f40b

File tree

89 files changed

+2035
-271
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2035
-271
lines changed

.ci/BHoMBot/Nuget/BHoM.Engine.nuspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<dependency id="NETStandard.Library" version="2.0.3" />
2020
<dependency id="Microsoft.Windows.Compatibility" version="5.0.2" />
2121
<dependency id="Microsoft.CSharp" version="4.7.0" />
22-
<dependency id="NETStandard.Library" version="2.0.3" />
2322
<dependency id="MongoDB.Bson" version="2.18.0" />
2423
<dependency id="Mono.Reflection" version="2.0.0" />
2524
<dependency id="CompareNETObjects" version="4.67.0" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "_t" : "BH.oM.Data.Library.Dataset", "SourceInformation" : { "_t" : "BH.oM.Data.Library.Source", "SourceLink" : "https://burohappold.sharepoint.com/:f:/r/sites/BHoM/02_Current/12_Scripts/01_Issue/BHoM/BHoM_Engine/Physical_Engine/%233201%20-%20Foundation%20engine%20methods?csf=1&web=1&e=613xLo", "Title" : "EmbedVolume", "Author" : "Peter Nugent", "ItemReference" : "", "Version" : "", "Publisher" : "", "Schema" : "", "Language" : "", "Location" : "", "Copyright" : "", "Contributors" : "", "Confidence" : "Medium", "BHoM_Guid" : "2cd77695-9a0d-4137-b1a2-be6ae7a4231d" }, "TimeOfCreation" : { "$date" : 1699521418128 }, "Data" : [{ "_t" : "BH.oM.Test.UnitTests.UnitTest", "Method" : { "_t" : "System.Reflection.MethodBase", "TypeName" : "{ \"_t\" : \"System.Type\", \"Name\" : \"BH.Engine.Physical.Query, Physical_Engine, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null\", \"_bhomVersion\" : \"7.0\" }", "MethodName" : "EmbedVolume", "Parameters" : ["{ \"_t\" : \"System.Type\", \"Name\" : \"BH.oM.Physical.Elements.PadFoundation\", \"_bhomVersion\" : \"7.0\" }", "{ \"_t\" : \"System.Type\", \"Name\" : \"System.Collections.Generic.List`1, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\", \"GenericArguments\" : [{ \"_t\" : \"System.Type\", \"Name\" : \"BH.oM.Physical.Elements.Pile\", \"_bhomVersion\" : \"7.0\" }], \"_bhomVersion\" : \"7.0\" }", "{ \"_t\" : \"System.Type\", \"Name\" : \"System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\", \"_bhomVersion\" : \"7.0\" }"], "_bhomVersion" : "7.0" }, "Data" : [{ "_t" : "BH.oM.Test.UnitTests.TestData", "Inputs" : [{ "_t" : "BH.oM.Physical.Elements.PadFoundation", "Location" : { "_t" : "BH.oM.Geometry.PlanarSurface", "ExternalBoundary" : { "_t" : "BH.oM.Geometry.Polyline", "ControlPoints" : [{ "_t" : "BH.oM.Geometry.Point", "X" : -26.676089242452477, "Y" : -3.0458886427846323, "Z" : 0.0 }, { "_t" : "BH.oM.Geometry.Point", "X" : -19.896530650447982, "Y" : 10.709737485920147, "Z" : 0.0 }, { "_t" : "BH.oM.Geometry.Point", "X" : -16.654133062967571, "Y" : 10.709737485920147, "Z" : 0.0 }, { "_t" : "BH.oM.Geometry.Point", "X" : -16.654133062967571, "Y" : -3.0458886427846323, "Z" : 0.0 }, { "_t" : "BH.oM.Geometry.Point", "X" : -26.676089242452477, "Y" : -3.0458886427846323, "Z" : 0.0 }] }, "InternalBoundaries" : [] }, "Construction" : { "_t" : "BH.oM.Physical.Constructions.Construction", "Layers" : [{ "_t" : "BH.oM.Physical.Constructions.Layer", "Material" : { "_t" : "BH.oM.Physical.Materials.Material", "Density" : 2500.0, "Properties" : [], "BHoM_Guid" : "9f1c11c2-a5e6-417c-9426-050bc669d99f", "Name" : "RC Concrete" }, "Thickness" : 1.0, "BHoM_Guid" : "e37d5bec-f632-42d5-af4e-aae0be8d85b6" }], "BHoM_Guid" : "14fb29f7-a3e8-4bda-b488-144e01b0eb3b", "Name" : "PadThk" }, "BHoM_Guid" : "1f88fb36-77fc-4c1c-9614-8cae4af2d7a9" }, { "_t" : "System.Collections.Generic.List`1[[BH.oM.Physical.Elements.Pile, Physical_oM, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null]]", "_v" : [{ "_t" : "BH.oM.Physical.Elements.Pile", "Location" : { "_t" : "BH.oM.Geometry.Line", "Start" : { "_t" : "BH.oM.Geometry.Point", "X" : -19.843501048562036, "Y" : 4.7483700592163336, "Z" : -0.84999999999999998 }, "End" : { "_t" : "BH.oM.Geometry.Point", "X" : -19.843501048562036, "Y" : 4.7483700592163336, "Z" : -11.559737485920149 }, "Infinite" : false }, "Property" : { "_t" : "BH.oM.Physical.FramingProperties.ConstantFramingProperty", "Profile" : { "_t" : "BH.oM.Spatial.ShapeProfiles.TubeProfile", "Diameter" : 0.90000000000000002, "Thickness" : 0.001, "Shape" : "Tube", "Edges" : [{ "_t" : "BH.oM.Geometry.Circle", "Centre" : { "_t" : "BH.oM.Geometry.Point", "X" : 0.0, "Y" : 0.0, "Z" : 0.0 }, "Normal" : { "_t" : "BH.oM.Geometry.Vector", "X" : 0.0, "Y" : 0.0, "Z" : 1.0 }, "Radius" : 0.45000000000000001 }, { "_t" : "BH.oM.Geometry.Circle", "Centre" : { "_t" : "BH.oM.Geometry.Point", "X" : 0.0, "Y" : 0.0, "Z" : 0.0 }, "Normal" : { "_t" : "BH.oM.Geometry.Vector", "X" : 0.0, "Y" : 0.0, "Z" : 1.0 }, "Radius" : 0.44900000000000001 }], "BHoM_Guid" : "ee590194-7e79-4ccf-9bd3-c9053b9baac2" }, "Material" : { "_t" : "BH.oM.Physical.Materials.Material", "Density" : 7500.0, "Properties" : [], "BHoM_Guid" : "11c7f9f3-71be-4957-8aa9-74726fb4fbee", "Name" : "S355 " }, "OrientationAngle" : 0.0, "BHoM_Guid" : "15aeeaf4-c4d6-47e7-aa85-2ae42fb9923a" }, "BHoM_Guid" : "40ac22b4-cee4-4e8e-8c7a-8020641c8294" }, { "_t" : "BH.oM.Physical.Elements.Pile", "Location" : { "_t" : "BH.oM.Geometry.Line", "Start" : { "_t" : "BH.oM.Geometry.Point", "X" : -19.995592449738069, "Y" : -0.29026459171215002, "Z" : -0.84999999999999998 }, "End" : { "_t" : "BH.oM.Geometry.Point", "X" : -19.995592449738069, "Y" : -0.29026459171215002, "Z" : -14.605626128704777 }, "Infinite" : false }, "Property" : { "_t" : "BH.oM.Physical.FramingProperties.ConstantFramingProperty", "Profile" : { "_t" : "BH.oM.Spatial.ShapeProfiles.TubeProfile", "Diameter" : 0.90000000000000002, "Thickness" : 0.001, "Shape" : "Tube", "Edges" : [{ "_t" : "BH.oM.Geometry.Circle", "Centre" : { "_t" : "BH.oM.Geometry.Point", "X" : 0.0, "Y" : 0.0, "Z" : 0.0 }, "Normal" : { "_t" : "BH.oM.Geometry.Vector", "X" : 0.0, "Y" : 0.0, "Z" : 1.0 }, "Radius" : 0.45000000000000001 }, { "_t" : "BH.oM.Geometry.Circle", "Centre" : { "_t" : "BH.oM.Geometry.Point", "X" : 0.0, "Y" : 0.0, "Z" : 0.0 }, "Normal" : { "_t" : "BH.oM.Geometry.Vector", "X" : 0.0, "Y" : 0.0, "Z" : 1.0 }, "Radius" : 0.44900000000000001 }], "BHoM_Guid" : "ee590194-7e79-4ccf-9bd3-c9053b9baac2" }, "Material" : { "_t" : "BH.oM.Physical.Materials.Material", "Density" : 7500.0, "Properties" : [], "BHoM_Guid" : "11c7f9f3-71be-4957-8aa9-74726fb4fbee", "Name" : "S355 " }, "OrientationAngle" : 0.0, "BHoM_Guid" : "15aeeaf4-c4d6-47e7-aa85-2ae42fb9923a" }, "BHoM_Guid" : "9ad7a97f-a4ed-40cf-bcc7-3f030b05ed4c" }] }, 1.0000000000000001E-09], "Outputs" : [0.00084728753867319162], "BHoM_Guid" : "6ba21783-e34b-4c48-9da3-b58d9917fbd1" }], "BHoM_Guid" : "bdf45b53-1275-4737-93db-93021df47947" }], "BHoM_Guid" : "69a58348-25f5-4bd0-a5c7-7609042c127f", "Name" : "EmbedVolume", "_bhomVersion" : "7.0" }

.ci/Datasets/Physical_Engine/Query/IsWithinPileCap.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

.ci/code/Engine_Test/Engine_Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<Description>https://github.com/BHoM/BHoM_Engine</Description>
6-
<AssemblyVersion>6.0.0.0</AssemblyVersion>
7-
<FileVersion>6.3.0.0</FileVersion>
6+
<AssemblyVersion>7.0.0.0</AssemblyVersion>
7+
<FileVersion>7.0.0.0</FileVersion>
88
</PropertyGroup>
99

1010
<ItemGroup>

.ci/code/Serialiser_Test/Serialiser_Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<Description>https://github.com/BHoM/BHoM_Engine</Description>
6-
<AssemblyVersion>6.0.0.0</AssemblyVersion>
7-
<FileVersion>6.3.0.0</FileVersion>
6+
<AssemblyVersion>7.0.0.0</AssemblyVersion>
7+
<FileVersion>7.0.0.0</FileVersion>
88
</PropertyGroup>
99

1010
<Target Name="PostBuild" AfterTargets="PostBuildEvent">

.ci/unit-tests/Base_Engine_Tests/Base_Engine_Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<FileVersion>6.3.0.0</FileVersion>
5-
<AssemblyVersion>6.0.0.0</AssemblyVersion>
4+
<FileVersion>7.0.0.0</FileVersion>
5+
<AssemblyVersion>7.0.0.0</AssemblyVersion>
66
<Description>https://github.com/BHoM/BHoM_Engine</Description>
77
<IsPackable>false</IsPackable>
88
<Configurations>Debug;Release;Test</Configurations>

.ci/unit-tests/Serialiser_Engine_Tests/Serialiser_Engine_Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<FileVersion>6.3.0.0</FileVersion>
5-
<AssemblyVersion>6.0.0.0</AssemblyVersion>
4+
<FileVersion>7.0.0.0</FileVersion>
5+
<AssemblyVersion>7.0.0.0</AssemblyVersion>
66
<Description>https://github.com/BHoM/BHoM_Engine</Description>
77
<IsPackable>false</IsPackable>
88
<Configurations>Debug;Release;Test</Configurations>

.ci/unit-tests/Structure_Engine_Tests/Structure_Engine_Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<FileVersion>6.3.0.0</FileVersion>
5-
<AssemblyVersion>6.0.0.0</AssemblyVersion>
4+
<FileVersion>7.0.0.0</FileVersion>
5+
<AssemblyVersion>7.0.0.0</AssemblyVersion>
66
<Description>https://github.com/BHoM/BHoM_Engine</Description>
77
<IsPackable>false</IsPackable>
88
<Configurations>Debug;Release;Test</Configurations>

.github/CODEOWNERS

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
/Analytical_Engine @al-fisher @rwemay @IsakNaslundBh @FraserGreenroyd
1111
#NEED OWNER: /Architecture_Engine
1212
/BHoM_Engine @adecler @al-fisher @FraserGreenroyd
13-
/Data_Engine @adecler @IsakNaslundBH
13+
/Data_Engine @adecler @IsakNaslundBh
1414
/Diffing_Engine @alelom @al-fisher @adecler
1515
/Environment_Engine @FraserGreenroyd @tg359 @jamesramsden-bh
16-
/Geometry_Engine @pawelbaran @al-fisher @IsakNaslundBH
16+
/Geometry_Engine @pawelbaran @al-fisher @IsakNaslundBh
17+
/Ground_Engine @peterjamesnugent @IsakNaslundBh @FraserGreenroyd
1718
/Humans_Engine @al-fisher @rwemay
1819
/Library_Engine @adecler @IsakNaslundBh
1920
/Matter_Engine @al-fisher @IsakNaslundBh @pawelbaran

Acoustic_Engine/Acoustic_Engine.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
<AssemblyVersion>6.0.0.0</AssemblyVersion>
5+
<AssemblyVersion>7.0.0.0</AssemblyVersion>
66
<Description>https://github.com/BHoM/BHoM_Engine</Description>
77
<Version>5.0.0</Version>
88
<Authors>BHoM</Authors>
99
<Copyright>Copyright © https://github.com/BHoM</Copyright>
1010
<RootNamespace>BH.Engine.Acoustic</RootNamespace>
11-
<FileVersion>6.3.0.0</FileVersion>
11+
<FileVersion>7.0.0.0</FileVersion>
1212
</PropertyGroup>
1313

1414
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

Analytical_Engine/Analytical_Engine.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
<AssemblyVersion>6.0.0.0</AssemblyVersion>
5+
<AssemblyVersion>7.0.0.0</AssemblyVersion>
66
<Description>https://github.com/BHoM/BHoM_Engine</Description>
77
<Version>5.0.0</Version>
88
<Authors>BHoM</Authors>
99
<Copyright>Copyright © https://github.com/BHoM</Copyright>
1010
<RootNamespace>BH.Engine.Analytical</RootNamespace>
11-
<FileVersion>6.3.0.0</FileVersion>
11+
<FileVersion>7.0.0.0</FileVersion>
1212
</PropertyGroup>
1313

1414
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
* This file is part of the Buildings and Habitats object Model (BHoM)
3+
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
4+
*
5+
* Each contributor holds copyright over their respective contributions.
6+
* The project versioning (Git) records all such contribution source information.
7+
*
8+
*
9+
* The BHoM is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Lesser General Public License as published by
11+
* the Free Software Foundation, either version 3.0 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* The BHoM is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU Lesser General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU Lesser General Public License
20+
* along with this code. If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
21+
*/
22+
23+
using System;
24+
using System.Collections.Generic;
25+
using System.Linq;
26+
using System.Text;
27+
using System.Threading.Tasks;
28+
29+
using BH.Engine.Geometry;
30+
using BH.oM.Geometry;
31+
32+
using BH.oM.Base.Attributes;
33+
using System.ComponentModel;
34+
35+
using BH.oM.Analytical.Elements;
36+
using BH.oM.Dimensional;
37+
38+
namespace BH.Engine.Analytical
39+
{
40+
public static partial class Compute
41+
{
42+
[Description("Gets the elements that lie within the provided space.")]
43+
[Input("region", "An Environment Space object defining a perimeter to build a 3D volume from and check if the volume contains the provided point.")]
44+
[Input("regionHeight", "The height of the space.", typeof(BH.oM.Quantities.Attributes.Length))]
45+
[Input("elements", "The elements being checked to see if they are contained within the bounds of the 3D volume.")]
46+
[Input("acceptOnEdges", "Decide whether to allow elements which sit on the edge of the space, default false.")]
47+
[Input("acceptPartial", "Decide whether to include elements only partially within the space, default false.")]
48+
[Output("elements", "The elements from the provided elements that are within the space.")]
49+
public static List<IElement> ElementsInRegion(this IRegion region, double regionHeight, List<IElement> elements, bool acceptOnEdges = false, bool acceptPartial = false)
50+
{
51+
if (region == null)
52+
return new List<IElement>();
53+
54+
List<bool> isContaining = region.IsContaining(regionHeight, elements, acceptOnEdges, acceptPartial);
55+
56+
return elements
57+
.Zip(isContaining, (elem, inSpace) => new {
58+
elem,
59+
inSpace,
60+
})
61+
.Where(item => item.inSpace)
62+
.Select(item => item.elem)
63+
.ToList();
64+
}
65+
}
66+
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/*
2+
* This file is part of the Buildings and Habitats object Model (BHoM)
3+
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
4+
*
5+
* Each contributor holds copyright over their respective contributions.
6+
* The project versioning (Git) records all such contribution source information.
7+
*
8+
*
9+
* The BHoM is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Lesser General Public License as published by
11+
* the Free Software Foundation, either version 3.0 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* The BHoM is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU Lesser General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU Lesser General Public License
20+
* along with this code. If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
21+
*/
22+
23+
using System;
24+
using System.Collections.Generic;
25+
using System.Linq;
26+
using System.Text;
27+
using System.Threading.Tasks;
28+
29+
using BH.Engine.Geometry;
30+
using BH.oM.Geometry;
31+
32+
using BH.oM.Base.Attributes;
33+
using System.ComponentModel;
34+
35+
using BH.oM.Analytical.Elements;
36+
37+
namespace BH.Engine.Analytical
38+
{
39+
public static partial class Compute
40+
{
41+
[Description("Takes a region with a Floor Perimeter and creates a collection of polylines which represent the closed volume of the region.")]
42+
[Input("region", "A region with a floor perimeter to extrude into a collection of panels.")]
43+
[Input("height", "The height of the region, as a double, to calculate the ceiling level of the region. This will be used as the Z value of the perimeter + the given height.")]
44+
[Input("tolerance", "The degree of tolerance on the angle calculation for collapsing the regions perimeter to a polyline. Default is equal to BH.oM.Geometry.Tolerance.Angle.")]
45+
[Output("polylines", "A collection of polylines which represent the closed volume of the region.")]
46+
[PreviousInputNames("region", "room, space")]
47+
public static List<Polyline> ExtrudeToVolume(this IRegion region, double height, double tolerance = BH.oM.Geometry.Tolerance.Angle)
48+
{
49+
if (region == null)
50+
return new List<Polyline>();
51+
52+
Polyline floor = region.Perimeter.ICollapseToPolyline(tolerance);
53+
return floor.ExtrudeToVolume(region.Name, height);
54+
}
55+
56+
[Description("Takes a polyline perimeter and creates a collection of polylines which represent the closed volume of a space.")]
57+
[Input("pLine", "A polyline perimeter to extrude into a collection of panels.")]
58+
[Input("connectingSpaceName", "The name of the space the panels will enclose.")]
59+
[Input("height", "The height of the space, as a double, to calculate the ceiling level of the room. This will be used as the Z value of the perimeter + the given height.")]
60+
[Output("polylines", "A collection of polylines which represent the closed volume of the region.")]
61+
public static List<Polyline> ExtrudeToVolume(this Polyline pLine, string connectingSpaceName, double height)
62+
{
63+
if (pLine == null)
64+
return new List<Polyline>();
65+
66+
List<Point> floorPoints = pLine.ControlPoints;
67+
List<Point> checkPoints = floorPoints.CullDuplicates();
68+
69+
if (floorPoints.Count != (checkPoints.Count + 1))
70+
{
71+
BH.Engine.Base.Compute.RecordError("The polyline has duplicate control points and cannot be extruded to a volume.");
72+
return new List<Polyline>();
73+
}
74+
75+
List<Polyline> panels = new List<Polyline>();
76+
77+
Polyline floorPanel = pLine;
78+
panels.Add(floorPanel);
79+
80+
List<Point> roofPoints = new List<Point>();
81+
foreach (Point p in floorPoints)
82+
roofPoints.Add(new Point { X = p.X, Y = p.Y, Z = p.Z + height });
83+
84+
Polyline roofPanel = new Polyline { ControlPoints = roofPoints };
85+
panels.Add(roofPanel);
86+
87+
for (int a = 0; a < floorPoints.Count - 1; a++)
88+
{
89+
List<Point> panelPoints = new List<Point>();
90+
panelPoints.Add(floorPoints[a]);
91+
panelPoints.Add(new Point { X = floorPoints[a].X, Y = floorPoints[a].Y, Z = floorPoints[a].Z + height });
92+
panelPoints.Add(new Point { X = floorPoints[a + 1].X, Y = floorPoints[a + 1].Y, Z = floorPoints[a + 1].Z + height });
93+
panelPoints.Add(floorPoints[a + 1]);
94+
panelPoints.Add(floorPoints[a]);
95+
96+
panels.Add(new Polyline {ControlPoints = panelPoints });
97+
}
98+
99+
return panels;
100+
}
101+
}
102+
}
103+
104+

0 commit comments

Comments
 (0)