What is the requirement for geometry in order createHBSrfs to work without error

When I tried to assign material setting to multiple breps using create HBsrfs, I got following error.
(IndexOutOfRangeException): index out of range: 0
Changing the geometry, sometimes it works and sometimes it gets same error.
From this trial, I guess that createHBSrfs has some requirement for geometry such as

  • it must be polysurface

  • it must be closed etc

But still cannot figure out what is the requirement createHBSrfs can accept.
Does anyone know clear requirement?

@KatsuyaObara Maybe because the Radiance material is not connected to the surrounding.

I have connected Radiance material as shown above image but still get error.

Can you upload your Rhino file?

Please find attached grasshopper file with internalized data.
180704DaylightSpecialized.gh (2.1 MB)

@KatsuyaObara Sorry, I met the same error. Perhaps there is some unknown question about your geometry. You should check it.

For me it is working fine. I understand that it is related to the “Surroundings” geometry.
I tried changing the absolute tolerance in Rhino from 0.01 to 0.001 and the i get the error.
My suggestion is to change your tolerance and/or check your model. I’m suspecting you have tiny geometries that make the component to fail. You can try to debug the geometry until you find the faulty one(s).
-A.

1 Like

@AbrahamYezioro When I checked Rhino setting, absolute tolerance was 0.01. And I changed to 0.1 but still I get same error.
Do you mean that if there is tiny geometry, createHBSrfs component get error?

I’m saying that you can check and debug which is/are the geometry that is causing the component to fail.
I assume the tiny is the one that is causing the problem.
Check also if you are inputting curves instead of surfaces/meshes.
-A.

@KatsuyaObara, Are you using Rhino 5 or Rhino 6?

@KatsuyaObara,
The issue is with one of your geometries. The one with index 20 is Invalid Brep. Try to fix it or if you join the brep as shown below, the invalid brep will be removed !

@mostapha,
I tested the file with Rhino 5 and I had the issue.

2 Likes

@KatsuyaObara aside from the other good comments, further to solving an Invalid Brep, the error persisted in my case and using mergeAllFaces sometime solves the Hbsrf component error.

2 Likes

@mostapha I am using Rhino 5

@MohammedAlshayeb @OlivierDambron It worked fixing mergeAllFaces to the geometry specified by Mohammed! Thank you very much!

Thanks. I was wondering if it’s Rhino 6 specific which it wasn’t.