This instruction will guide you through integrating MeshLib into your C# project using NuGet or .NET Command-Line Interface.
Important Note: MeshLib currently supports x64 builds only, so ensure your project configuration aligns to avoid compatibility issues. While .NET and NuGet offer support for macOS and Linux, the MeshLib package lacks native libraries for these platforms. As of now, MeshLib operates exclusively on Windows when used with C#.
Before installing MeshLib, ensure you have the following tools installed:
Install the latest version of the .NET SDK from the .NET website. MeshLib is compatible with .NET Framework 4.7 and higher, as well as .NET 5.0, 6.0, 7.0, 8.0, and additional versions outlined below.
Verify your installation by running:
dotnet --version
For a more integrated development experience, you can use Visual Studio 2019 or later. Make sure to install the .NET desktop development workload.
Depending on your development environment and workflow preferences, you can choose from the following installation methods
To install MeshLib via Visual Studio, follow these steps:
using MR.DotNet; at the top of your C# files to start using MeshLib features.