Skip to content

Commit

Permalink
Aligning with changes in Structure_Engine
Browse files Browse the repository at this point in the history
  • Loading branch information
IsakNaslundBh committed Nov 16, 2020
1 parent dbb95ae commit 09cd4ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions RAM_Adapter/CRUD/Create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
using BH.Engine.Geometry;
using BH.Engine.Base;
using BH.Engine.Structure;
using BH.Engine.Spatial;
using BH.Adapter.RAM;
using BH.oM.Adapters.RAM;
using BH.oM.Adapter;
Expand Down Expand Up @@ -375,7 +376,7 @@ private bool CreateCollection(IEnumerable<Panel> bhomPanels)
{
RAMId RAMId = new RAMId();
string name = panel.Name;
PolyCurve outlineExternal = panel.Outline();
PolyCurve outlineExternal = panel.OutlineCurve();
ramStory = panel.GetStory(ramStories);
ramFloorType = ramStory.GetFloorType();

Expand Down Expand Up @@ -407,7 +408,7 @@ private bool CreateCollection(IEnumerable<Panel> bhomPanels)

foreach (Opening opening in panelOpenings)
{
PolyCurve outlineOpening = opening.Outline();
PolyCurve outlineOpening = opening.OutlineCurve();
openingOutlines.Add(outlineOpening);
}

Expand Down Expand Up @@ -493,7 +494,7 @@ private bool CreateCollection(IEnumerable<Panel> bhomPanels)
}

// Find outline of planar panel
PolyCurve outline = BH.Engine.Structure.Query.Outline(wallPanel);
PolyCurve outline = BH.Engine.Spatial.Query.OutlineCurve(wallPanel);
List<Point> wallPts = outline.DiscontinuityPoints();
List<Point> sortedWallPts = wallPts.OrderBy(p => p.X).ToList();
Point leftPt = sortedWallPts.First();
Expand Down Expand Up @@ -529,7 +530,7 @@ private bool CreateCollection(IEnumerable<Panel> bhomPanels)
// Find opening location, width, and height from outline and apply
foreach (Opening open in wallPanel.Openings)
{
PolyCurve openOutline = open.Outline();
PolyCurve openOutline = open.OutlineCurve();
BoundingBox openBounds = BH.Engine.Geometry.Query.Bounds(openOutline);
Point openMin = openBounds.Min;
Point openMax = openBounds.Max;
Expand Down
2 changes: 1 addition & 1 deletion RAM_Adapter/Convert/ToRAM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public static IStory GetStory(this Panel panel, IStories ramStories)
List<Point> panelPoints = new List<Point>();

// Get heights of wall and floor corners to create levels
PolyCurve panelOutline = Engine.Structure.Query.Outline(panel);
PolyCurve panelOutline = Engine.Spatial.Query.OutlineCurve(panel);
panelPoints = panelOutline.DiscontinuityPoints();

foreach (Point pt in panelPoints)
Expand Down

0 comments on commit 09cd4ba

Please sign in to comment.