- Thank you received: 0
[BUG] Surf file read incorrectly
4 years 4 weeks ago - 4 years 4 weeks ago #3390
by rgs
[BUG] Surf file read incorrectly was created by rgs
Hello,
I noticed a bug when importing surf files into Netgen. The z-coordinates of all points seem to be multiplied by 10. This can be seen when importing a surf file using the GUI and visualising it, or when calculating the bounding box of an imported surf mesh. The coordinates in the surf file are what I would expect them to be, so this has to be something that happens when the file is imported.
Moreover, when I try to convert an imported mesh to an ngsolve mesh, I get the error "netgen.libngpy._meshing.NgException: mesh with negative boundary-condition number" even if the surf file was originally exported from Netgen.
I am using the nightly build NGSolve-6.2.2009-24-g53c262fa.
I am attaching two scripts which should reproduce this problem. The script export.py will generate a cube, mesh it, print the bounding box and export the surface mesh as a surf file. The script import.py will import the generated surf file and calculate the bounding box.
Cheers,
Rohit
I noticed a bug when importing surf files into Netgen. The z-coordinates of all points seem to be multiplied by 10. This can be seen when importing a surf file using the GUI and visualising it, or when calculating the bounding box of an imported surf mesh. The coordinates in the surf file are what I would expect them to be, so this has to be something that happens when the file is imported.
Moreover, when I try to convert an imported mesh to an ngsolve mesh, I get the error "netgen.libngpy._meshing.NgException: mesh with negative boundary-condition number" even if the surf file was originally exported from Netgen.
I am using the nightly build NGSolve-6.2.2009-24-g53c262fa.
I am attaching two scripts which should reproduce this problem. The script export.py will generate a cube, mesh it, print the bounding box and export the surface mesh as a surf file. The script import.py will import the generated surf file and calculate the bounding box.
Cheers,
Rohit
Last edit: 4 years 4 weeks ago by rgs.
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
4 years 3 weeks ago - 4 years 3 weeks ago #3391
by christopher
Replied by christopher on topic [BUG] Surf file read incorrectly
Hi,
thanks for reporting, fix is in the pipeline and should be in the nightly release on Monday.
Best
Christopher
thanks for reporting, fix is in the pipeline and should be in the nightly release on Monday.
Best
Christopher
Last edit: 4 years 3 weeks ago by christopher.
The following user(s) said Thank You: rgs
4 years 3 weeks ago #3405
by rgs
Replied by rgs on topic [BUG] Surf file read incorrectly
Hello Christopher,
I'm not sure if the fix was already released in the nightly versions this week, but I still have the same problem in version 6.2.2009-99-gd54c2c08b
I'm not sure if the fix was already released in the nightly versions this week, but I still have the same problem in version 6.2.2009-99-gd54c2c08b
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
4 years 3 weeks ago #3406
by christopher
Replied by christopher on topic [BUG] Surf file read incorrectly
Sorry, yes the Netgen update was missing in NGSolve, will be in the nightly version tomorrow.
Time to create page: 0.104 seconds