Thermal Shade Analysisi failed: Attempted to divide by zero

Hi everyone, would anyone let me know why I am getting the “Attempted to divide by zero” error?

I am using the downlaoded script from gitbub (comfort_shade_benefit) to analysis shade benefit. All step retaimed the same as the original script. But I used my own shade geometry and study region, I also added context buildings.

The script only worked when I adjusted the grid size to be 1 or above. Once its below 1, it will fail. I want to understand why.

As a new user I cant upload files. But please see the screenshot for the script:

Much cappreicate for your help.

I can only upload one image once. Here is the closeup of the error mssage

This is my context buildings and shade geo (green):

This is my study region (blue):

Hi @Renae ,

You should now be able to upload files. This is most likely happening because the grid size is causing a geometry to generate zero points for the analysis grid.

If you can upload your geometry file that recreates the issue, I should be able to push a fix so that you don’t get the exception.

Hi @chris Thank you so much for the reply. Please see attached file and geometry/breps have benn internalised.

Much apprecaited!!

comfort_shade_benefit.gh (244.3 KB)

Thanks, @Renae .

The issue was that Rhino meshing was producing a zero-area mesh face for your geometry when small grid sizes were used.

I pushed a fix here, which is now available via the LB Versioner:

… and here is a version of your file with the fixed component:


comfort_shade_benefit_CWM.gh (159.1 KB)

@chris Amazing!!! Thank you again!!