
Does anyone knows if this problem was caused by the shapeFilePath?

Does anyone knows if this problem was caused by the shapeFilePath?
Could you turn on the outputs of all the nodes you got ? Especially Shape.GetAllShapes ?
I suspect the error you have is coming from the curves you are using. They maybe do not form a closed polycurve.
The output of Shape.GetAllShapes was a function not a curve, that was the reason! I fixed and all worked! Thank you for the help!