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

Make the facade go all the way up. #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Make the facade go all the way up. #109

wants to merge 1 commit into from

Conversation

ikeough
Copy link
Contributor

@ikeough ikeough commented Jul 5, 2022

The facade function does currently create a facade that covers the last level of the building. This PR fixes the facade function to create a facade that covers the entire height of the underlying envelope.

This applies only to the "Levels" function, not to the "Levels By Envelope" function.

  • The function is staged.
  • The function has been tested against the tour. If the function is not used in the tour, mark this as not applicable (NA).

Before:
image
After:
image


This change is Reviewable

@ikeough ikeough requested a review from a team as a code owner July 5, 2022 00:16
@ikeough ikeough requested a review from serenayl July 5, 2022 00:16
@@ -83,6 +83,11 @@ public static FacadeByEnvelopeOutputs Execute(Dictionary<string, Model> models,
envLevels.Insert(0, last);
}

if (envLevels.Last().Elevation != envelope.Height)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the change that matters. At some point we started using Levels to define the height of the facade and because we calculate the floor height by subtracting the next level height from the previous one, we don't get a top level height because we stop the iteration short of the level. We have to calculate the top level height as the distance between the last level and the top of the envelope.

@ikeough ikeough requested review from cdriesler and removed request for serenayl July 5, 2022 17:06
Copy link
Contributor

@cdriesler cdriesler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like we're getting closer and closer to when it's time to consolidate: "Envelope", "Levels", "Facade (Grid?)" ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants