OcctNet.ModelingAlgorithms 0.1.0-preview.2

This is a prerelease version of OcctNet.ModelingAlgorithms.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package OcctNet.ModelingAlgorithms --version 0.1.0-preview.2
                    
NuGet\Install-Package OcctNet.ModelingAlgorithms -Version 0.1.0-preview.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OcctNet.ModelingAlgorithms" Version="0.1.0-preview.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OcctNet.ModelingAlgorithms" Version="0.1.0-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="OcctNet.ModelingAlgorithms" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OcctNet.ModelingAlgorithms --version 0.1.0-preview.2
                    
#r "nuget: OcctNet.ModelingAlgorithms, 0.1.0-preview.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OcctNet.ModelingAlgorithms@0.1.0-preview.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OcctNet.ModelingAlgorithms&version=0.1.0-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=OcctNet.ModelingAlgorithms&version=0.1.0-preview.2&prerelease
                    
Install as a Cake Tool

OCCT.NET

A managed .NET port of Open CASCADE Technology (OCCT), the open-source CAD kernel. Work in progress: see docs/design.md for the design and the phase plan, and docs/port-status.md for what has been ported.

  • Pure managed code: no native libraries, no P/Invoke.
  • Faithful: ported class for class from OCCT V8_0_1, keeping OCCT's names, so OCCT's documentation applies.
  • Immutable to callers: every value you get back is immutable; collections are Schematiq.Collections lists.
using Occt;

gp_Trsf aRotation = gp_Trsf.Rotation(gp.OZ(), Math.PI / 2);
gp_Pnt aPoint = new gp_Pnt(1, 0, 0).Transformed(aRotation);   // (0, 1, 0); the original is unchanged

Building

Requirements: the .NET 10 SDK and git.

./tools/get-occt.ps1          # OCCT V8_0_1 source into .deps/occt-src (for the corpus test and port status)
./tools/get-occt-testdata.ps1 # OCCT's test data (99 MB) into .deps/occt-testdata, for the Draw corpus
dotnet test

tests/OcctNet.Oracle.Tests compares the port with native OCCT and needs a sibling build123d.NET checkout with its native build: see docs/oracle-testing.md.

Contributing a port

docs/translation-rules.md says how C++ becomes C#, and docs/porting-playbook.md the steps for a package.

Licence

GNU Lesser General Public License 2.1 with the Open CASCADE exception, as OCCT: see LICENSE, OCCT_LGPL_EXCEPTION.txt and NOTICE. Delabella's port (BRepMesh/delabella.cs) keeps its MIT licence: see THIRD-PARTY-NOTICES.md.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OcctNet.ModelingAlgorithms:

Package Downloads
OcctNet.DataExchange

OCCT.NET data exchange: a managed port of OCCT's TKXSBase, TKDESTEP and TKDESTL (the exchange framework, STEP, STL), with an immutable assembly tree in place of XCAF.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.3 77 11/2/2026
0.1.0-preview.2 72 11/2/2026