Skip to content

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
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.

3 participants