Based on paper Opening and Closing Surfaces SIGGRAPH Asia 2020 SILVIA SELLÁN, JACOB KESTEN, ANG YAN SHENG, ALEC JACOBSON
Specs: Any Windows computer (this plugin is tested on Windows 11, 64-bit operating system, x64-based processor)
Be sure to have Autodesk Maya installed. This plugin has been tested on Maya 2024
If you would like to use the plug-in as is, feel free to download the already built .mll file here:
https://github.com/beckyfeng08/clopener_maya_plugin/blob/main/helloMaya.mll
Compile and build on Visual Studio 2022
To clone:
git clone --recurse-submodules https://github.com/beckyfeng08/clopener_maya_plugin.git
Checkout to libigl 2.4.0
cd clopener_maya_plugin; cd libigl; git checkout v2.4.0
Double click on the helloMaya.sln to open the file in Visual Studio 2022.
Go to Project > helloMaya Properties. Change the Configuration to Release, adn Platform to x64.
Under Configuration Properties > General, be sure your settings match this:
Under Configuration Properties > Advanced:
Under C/C++ > General, under Additional Include Directories, add helloMaya\include, helloMaya\eigen-3.4.1, helloMaya\libigl\include, and whatever Maya version you are using's include directory. Hover over Additional Include Directories, click on the dropdown arrow, click Edit..., then click on the yellow icon on the top right corner of the pop up window to add a new directory like so:
Open Visual Studio 2022, and open the project via its .sln file. Under the Solution Explorer, right click on "helloMaya", navigate to "Properties".
Under Configuration Properties > General > Configuration Type, set to "Dynamic Library (.dll)". Click "Apply".

Under C/C++ > General > Additional Include Directories, make sure you add the eigen-3.4.1 directory, libigl\include directory, and your Autodesk Maya include directories in. Click "Apply":
Make sure that under C/C++ > Preprocessor > Preprocessor Definitions is set to "NT_PLUGIN". Click "Apply".

Under Linker > General, make sure you have the Output File secton set to "$(OutDir)$(ProjectName).mll" and under Additional Library Directories, set to "C:\Program Files\Autodesk\Maya2024\lib". Click "Apply"
Under Linker > Input > Additional Dependencies, be sure that you list the following:
To build the project and create a .dll file, right click on helloMaya under the Solution Explorer and click "Rebuild"