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
Issue 4361 #4424
Issue 4361 #4424
Conversation
…ludes the area of the frame. Modified PlanarSurface::netArea to call the SubSurface::totalArea. Added a unit test Issue_4361 to SubSurface_Gtest
…t to include window wall ratio check
Added method totalAreaOfSubSurfaces to Surface Added polygonInPolygon methof to intersection
Co-authored-by: Dan Macumber <dan.macumber@gmail.com>
Co-authored-by: Dan Macumber <dan.macumber@gmail.com>
…ea for the window wall ratio calculartion
…me was chanegd in the header utomatically it wouldnt change all references
@ggartside Can you remove those .patch files? I don't think you want to include these @macumber mentioned. |
I think you already removed the patches? |
@ggartside Yep, I just pushed up a commit to remove those. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ggartside I left some review comments. Most of it is just syntax/nitpicking, but I did leave three marked * [ ] TODO:
that need attention (some are questions, and I would be satisfied if the answer is just "No, it is intended")
src/model/Surface.cpp
Outdated
std::reverse(vertices.begin(), vertices.end()); | ||
} | ||
roughOpenings[subSurface] = vertices; | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- TODO: Is the break intended? I don't understand everything that's going on, but don't you want to fix all of them?
Also, why not make this check directly in the loop above when populating roughOpenins?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you are correct an original iteration had a loop that checked each vertex and the break was to hop out of that loop - good find! I also found I'd re-used the name vertices in the second loop and had missed a place where I needed to get the inverse of the transform
I probably could have combined the first two loops, but I think separating them makes the code easier to follow
- First loop sets up the sub surface rough opening vertices in the coordinate space of the parent surface
- Second loop checks these vertices to see if they extend outside the parent surface
- Third loop checks each subsurface for overlaps with adjacent sub surfaces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I applied my nitpicking changes and moved the tests to ModelFixture. I resolved all outdated review comments as a result. You have 4 reviews TODO left in the review above.
@ggartside Just following up on this PR. Have you addressed the TODO @jmarrec requested? Let's do another review and then we can hopefully get this merged in. |
CI Results for 155a734:
|
Looks like the review comments have been addressed on this so I'm going to merge. |
Pull request overview
Pull Request Author
src/model/test
)src/energyplus/Test
)src/osversion/VersionTranslator.cpp
)Labels:
IDDChange
APIChange
Pull Request - Ready for CI
so that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.