WireDiagrid not matching the reference surface

Hi to everyone!
I’m trying to get a get a diagrid based on solid box geometry. I created the box starting from 4 reference lines. I tried to use the Lunchbox node “Structure.WireDiagrid” to abtain the grid.
The problem is that it’s working fine for the side surfaces of the box, but the grid it’s not matching the top surface.

I’m still not able to understand why…
I searched for similar topic but i didn’t find them.
If anyone could explain me what i’m doing wrong or if there is another Topic already solved, it would be really appreciated.
Please, if you notice that I’m using the wrong approach, tell me as well.
Sorry but as a new user I’m not allowed to attach the Dynamo and the Revit files.

Sounds like its related to this issue: https://github.com/DynamoDS/Dynamo/issues/6508
This:
https://github.com/DynamoDS/Dynamo/issues/2210
and
http://dynamobim.org/forums/topic/dividesurfaceuv-problem/#post-36637

@Dimitar_Venkov has a solution:
http://dynamobim.com/forums/topic/surface-point-at-parameter-not-aligning-with-xy-object-from-revit/

1 Like

Thanks a lot @Thomas_Mahon! :smile:
The links were really helpfull.
Now it works fine!