ladybug-tools / honeybee-dynamo

:honeybee: :blue_book: Honeybee library and plugin for Dynamo
GNU General Public License v3.0
17 stars 8 forks source link

Showing Honeybee Results As Colores Surface in Revit #57

Closed SamDehghani closed 7 years ago

SamDehghani commented 7 years ago

Hi There, Trying to show Honeybee results in Revit as colored surface seems to be pretty successful, however I encountered a strange issue. When the rooms are rectangular the output polygons of "Generate Test Points" works fine. test for github When the room are somehow more complicated the polygons fail to follow the rooms outline. Some polygon turn into irregular shapes. test wrong test wrong 01

Did I do anything wrong? Should I adjust something in a different way? Thanks in advance,

mostaphaRoudsari commented 7 years ago

Hi @SamDehghani, You're not doing anything wrong. It's because how Honeybee creates the test surfaces. Since Dynamo doesn't have a good meshing library to help with edge cases I create a grid of squares and then check and remove the squares that any of the points are outside the boundary. If you try a smaller grid size it should cover your case here but the eventual solution is to write a more sophisticated algorithm to generate the test grid.

SamDehghani commented 7 years ago

Hi @mostaphaRoudsari , Thank you very much.

mostaphaRoudsari commented 7 years ago

We can close this for now. Here is the example files.