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

Revision history [back]

click to hide/show revision 1
initial version

Shading Surface ends up in wrong location

Hello, I have written my own python-based software to load and visualise the geometry inside an .OSM file. I am using openstudio.model.exampleModel() for testing.

I am able to locate the spaces and the apertures correctly, but for some reason, one shading surface ends up in the wrong location (inside the building rather than on the aperture. While spaces have a transformation matrix and I apply that correctly, shading surfaces do not seem to have a transformation matrix so I directly take their vertices. The exported gbxml file is correct, but my geometry translation is not (and on only one surface which is weird since I loop through all of them and apply the same computation). image description image description

Shading Surface ends up in wrong location

Hello, I have written my own python-based software to load and visualise the geometry inside an .OSM file. I am using openstudio.model.exampleModel() for testing.

I am able to locate the spaces and the apertures correctly, but for some reason, one shading surface ends up in the wrong location (inside the building rather than on the aperture. While spaces have a transformation matrix and I apply that correctly, shading surfaces do not seem to have a transformation matrix so I directly take their vertices. The exported gbxml file is correct, but my geometry translation is not (and on only one surface which is weird since I loop through all of them and apply the same computation). image description image description

I also did a test where I found the shading surface definition in the exported OSM file (which displays correctly in the OpenStudio application) and located one vertex which was at 10, 8.1, 2.1 so I placed a box there manually and indeed it is exactly at one corner of that shading surface (which is at the wrong location). So, I must be missing some transformation that needs to be applied to that shading surface?

image description image description

Shading Surface ends up in wrong location

Hello, I have written my own python-based software to load and visualise the geometry inside an .OSM file. I am using openstudio.model.exampleModel() for testing.

I am able to locate the spaces and the apertures correctly, but for some reason, one shading surface ends up in the wrong location (inside the building rather than on the aperture. While spaces have a transformation matrix and I apply that correctly, shading surfaces do not seem to have a transformation matrix so I directly take their vertices. The exported gbxml file is correct, but my geometry translation is not (and on only one surface which is weird since I loop through all of them and apply the same computation). image description image description

I also did a test where I found the shading surface definition in the exported OSM file (which displays correctly in the OpenStudio application) and located one vertex which was at 10, 8.1, 2.1 so I placed a box there manually and indeed it is exactly at one corner of that shading surface (which is at the wrong location). So, I must be missing some transformation that needs to be applied to that shading surface?

image description image description