Hi,
Thanks for the reply. The line number refers to the text file line number. I made the changes you suggested and now it gives me this error: TopoDS has no gp point can't (file is attached) As far as I can tell the surface is closed and defined I don't understand what could be the problem hereMesh.geo
Hi,
For some reason some of the line loops in OpenCASCADE is randomly not working. It seems completely arbitrary and since I need to have generic code to mesh a lot of surfaces I can't apply a one-off fix. Any help would be greatly appreciated. The file is a little large so takes a little while to read in. Script is attached.
Haris