Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Air as PanelType #134

Merged
merged 1 commit into from
Jun 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions IES_Engine/Convert/Environment/Space.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public static List<string> ToIES(this List<Panel> panelsAsSpace, SettingsIES set

foreach (Panel p in panelsAsSpace)
{
if (p.Type == PanelType.Undefined && p.Openings.Count == 0)
p.Openings.Add(new Opening { Edges = new List<Edge>(p.ExternalEdges), Type = OpeningType.Undefined }); //Air walls need the polyline adding as an opening of type hole
if (p.Type == PanelType.Air && p.Openings.Count == 0)
p.Openings.Add(new Opening { Edges = new List<Edge>(p.ExternalEdges), Type = OpeningType.Hole }); //Air walls need the polyline adding as an opening of type hole

List<Point> v = p.Vertices();
v.RemoveAt(v.Count - 1); //Remove the last point because we don't need duplicated points
Expand Down