Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 1.76 KB

File metadata and controls

61 lines (46 loc) · 1.76 KB

OpenSharpCAD

Parametric CAD using C#

Video

YouTube Demo

Description

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.

Getting Started

Prerequisites

  • .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).

Installation

Clone the repository including all submodules:

git clone --recursive https://github.com/roboter/OpenSharpCAD.git
cd OpenSharpCAD

Build Instructions

Mac

Build and run using the .NET CLI:

# Build the project
dotnet build OpenSharpCAD/OpenSharpCAD.csproj

# Run the application
dotnet run --project OpenSharpCAD/OpenSharpCAD.csproj

Windows

You can use either Visual Studio or the .NET CLI:

Option 1: Visual Studio

  1. Open OpenSharpCAD.sln in Visual Studio 2022.
  2. Set OpenSharpCAD as the Startup Project.
  3. Press F5 to build and run.

Option 2: .NET CLI

# Build the project
dotnet build OpenSharpCAD/OpenSharpCAD.csproj

# Run the application
dotnet run --project OpenSharpCAD/OpenSharpCAD.csproj

Links

Example

CsgObject bar = new Box(20, 5.8, 12, createCentered: false);

Screenshot

Screenshot