Instructions for compiling nglib.dll from Netgen 6 for use with Mecway
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. Download and install 64 bit OCC 7.3 binaries. Other versions are probably OK too.

2. Open the netgen source folder containing CMakeLists.txt in Visual Studio 2017 which opens it as a CMake project

3. Build. That creates nglib.dll which you can copy to the Mecway folder in place of the supplied version.




Changes to the source code specially for Mecway
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

All changes are identified with "Change for Mecway" comments and are in these files:

nglib.h
nglib.cpp
spline.cpp      Changed 2D elliptic splines to parabolic to match the shape of quadratic element edges
msghandler.cpp  Reduced the amount of messages output

There is also an extra file for Visual Studio:
CMakeSettings.json


Original source from:

https://github.com/NGSolve/netgen/releases/tag/v6.2.1808