Surface intersection & matching not matching surfaces even in simple use cases.

asked 2017-10-09 23:39:34 -0500

Karthick gravatar image

updated 2017-10-11 02:24:40 -0500

I am trying to intersect and match using ruby code.

I have a simple model with one zone and a hip roof on top of it. I am trying to match the roof and living area below it doesnt match.

Both essentially are same surfaces but in different space. Surface in the living zone has 5 co-ordinates and the surface with which it is supposed to match and intersect has 4 co-ordinates.

In this case intersection and matching fails. If the vertices or co-ordinates are same then it matches. I want to know if this a limitation or am I missing something.

edit retag flag offensive close merge delete


Just do clarify, these are modeled as two separate OpenStudio Spaces? Yes, you are correct that surfaces will only match if they have the same (or rather reversed) coordinates. If they are in same plane and there is a valid intersection, it should intersect and then match. Are you using the Surface Matching measure, or have you written your own ruby code?

David Goldwasser gravatar imageDavid Goldwasser ( 2017-10-10 00:41:49 -0500 )edit

Yes they are modeled as two separate OpenStudio Spaces. I have written my own ruby code which is not different from the measure. They are in the same plane so it has a valid intersection. But it doesn't get matched with the surface below because of difference in number of points that defines the surface. The points are inline and the order is reversed. Is there any way for me to work around it programmatically.

Karthick gravatar imageKarthick ( 2017-10-10 18:59:03 -0500 )edit

Would you mind posting a picture of your surfaces that you want to intersect? Or perhaps a model itself so we can try?

Julien Marrec gravatar imageJulien Marrec ( 2017-10-11 02:25:30 -0500 )edit

how do I post a picture on the forum I am on a windows machine and I am not findnig any way of posting a pic or attaching a document in the forum.

Karthick gravatar imageKarthick ( 2017-10-11 18:51:41 -0500 )edit

When you edit your post, there's an icon that look like an image. Shortcut is CTRL+G

Julien Marrec gravatar imageJulien Marrec ( 2017-10-13 05:31:58 -0500 )edit