Parametric CAD using C#
OpenSharpCAD is a parametric CAD system that allows you to design 3D parts using C#. It is inspired by OpenSCAD but leverages the power and familiarity of the .NET ecosystem.
- .NET 10.0 SDK
- GLFW: On Windows the native GLFW binary is supplied by the glfw NuGet package. On macOS and Linux the build uses bundled binaries in the repo (or install GLFW via your system package manager if you prefer).
Clone the repository including all submodules:
git clone --recursive https://github.com/roboter/OpenSharpCAD.git
cd OpenSharpCADBuild and run using the .NET CLI:
# Build the project
dotnet build OpenSharpCAD/OpenSharpCAD.csproj
# Run the application
dotnet run --project OpenSharpCAD/OpenSharpCAD.csprojYou can use either Visual Studio or the .NET CLI:
Option 1: Visual Studio
- Open
OpenSharpCAD.slnin Visual Studio 2022. - Set
OpenSharpCADas the Startup Project. - Press
F5to build and run.
Option 2: .NET CLI
# Build the project
dotnet build OpenSharpCAD/OpenSharpCAD.csproj
# Run the application
dotnet run --project OpenSharpCAD/OpenSharpCAD.csproj- Original project from MatterHackers: MatterCAD - Design Your 3D Parts In C#
CsgObject bar = new Box(20, 5.8, 12, createCentered: false);
