C# .NET 3D Library for 2D/3D Geometric Computation
Work with 3D Bitmap, Mesh Creation & Ray-Casting against the Mesh surface via Open Source .NET 3D APIs .
Geometry3Sharp is an open source pure C# library for working with geometric computations like 2D/3D Vector Math, Curves and Surfaces, Spatial Queries, and Implicit Surfaces. Geometry3Sharp is fully compatible with Unity. You need to set the G3_USING_UNITY scripting definition and after that, you will have transparent interop between g3 and Unity vector types
The library supports several important features related to mesh creation and doing ray-casting against the mesh surface, Mesh simplification, Unity remeshing animations, generating 3D lattices, MarchingCubes, working with 3d Bitmaps, Fast Mesh, Surfacing Point Sets with Fast Winding Numbers and many more.
Getting Started with Geometry3Sharp
The easiest way to install Geometry3Sharp is by using NuGet. Please use the following command for a smooth installation.
Install Geometry3Sharp via NuGet
Install-Package geometry3Sharp -Version 1.0.324
Mesh Construction via .NET Library
The open source library Geometry3Sharp provides functionality for Interactive Mesh creation using .NET. First of all, you need to construct a DMesh3 object from lists of vertex x/y/z coordinates. A new utility function is now provided which makes this construction very simple. Moreover, the NewVertexInfo type has provided extra constructors for other cases, such as vertex colors and UVs.
Create Bitmap3Voxelization of a Mesh
Geometry3Sharp enables software developers to create Bitmap3 Voxelization of a mesh inside their own applications. There are several ways to create this Bitmap3voxelization of a mesh such as Voxelization with the mesh winding number, voxelization with Point-containment queries, creating a Minecraft-style surface mesh and more. The tutorials for the above are provided in the GitHub documentation section.
3D Printer Control
The Geometry3Sharp library allows developers to directly generate GCode for their 3D printer. you'll need the geometry3Sharp, gsGCode, and gsSlicer libraries. You will need the Settings object that is appropriate for your printer. You can easily customize the settings programmatically.