Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

@mleach there are some methods in the API that would allow for splitting surfaces at the ground plane. This is somewhat similar to the Surface::splitSurfaceForSubSurfaces that splits surfaces vertically for doors and windows. You could adopt this code to draw a large rectangle starting at z=0 and extending below the surface and to the sides, then intersect this new rectangle with the existing surface:

https://github.com/NREL/OpenStudio/blob/develop/openstudiocore/src/model/Surface.cpp#L1620

However, this is a little tricky. If there is enough interest we could add this as a new method in the API. Something like Surface::splitAtGroundPlane.

Dan