I am trying to add contour lines on a chart created in ladybug. The ContourMesh object is throwing a “Solution exception: Index was out of range” error.
I am thinking that this has got to do with the fact that the indexing is starting from 0 instead of 1 and therefore does not reach 8760 but reaches only 8759 in the indexing?
Has anyone experienced this error or can point me in the right direction to solve it?
Thanking you in advance!
Climate_0.gh (420.3 KB)
Index always starts at 0 and this is a common error in code however since this is specific to laybug you will have better luck on the lady bug forum. https://discourse.ladybug.tools/
Thank you Michael. I appreciate your help. I believe what is also happening is that the create 3Dchart is outputting the mesh in 3D and the contour mesh requires 2D Meshes. That seems to be the issue here. Now I’m off to figuring out how to cull the Z coordinate from the 3D chart list which is set as 0 due to the flattening of the mesh.