ZLab.Discrete
0.0.3
dotnet add package ZLab.Discrete --version 0.0.3
NuGet\Install-Package ZLab.Discrete -Version 0.0.3
<PackageReference Include="ZLab.Discrete" Version="0.0.3" />
<PackageVersion Include="ZLab.Discrete" Version="0.0.3" />
<PackageReference Include="ZLab.Discrete" />
paket add ZLab.Discrete --version 0.0.3
#r "nuget: ZLab.Discrete, 0.0.3"
#:package ZLab.Discrete@0.0.3
#addin nuget:?package=ZLab.Discrete&version=0.0.3
#tool nuget:?package=ZLab.Discrete&version=0.0.3
Zlab.Discrete
<picture> <source media="(prefers-color-scheme: dark)" srcset="https://github.com/sean1832/ZLab.Discrete/blob/main/docs/icons/icon_dark_trans.png?raw=true"> <source media="(prefers-color-scheme: light)" srcset="https://github.com/sean1832/ZLab.Discrete/blob/main/docs/icons/icon_light_trans.png?raw=true"> <img alt="Icon" src="https://github.com/sean1832/ZLab.Discrete/blob/main/docs/icons/icon_light_trans.png?raw=true" width="200"> </picture>
A fully managed .NET library for voxelization, meshing, and distance field computation. It is written entirely in C#, requires no external dependencies, and is designed for easy integration into .NET projects.
Features
Voxelization
- Anisotropic voxelization (non-uniform voxel sizes)
- Dense occupancy grids
- Sparse boundary voxelization
Distance Fields
- Euclidean distance transform (exact, isotropic and anisotropic)
- Signed distance field (SDF) generation
- Sampling with nearest-neighbor or trilinear interpolation
- Gradient computation from SDFs
Meshing
- Face-culling voxel meshing
Grid Processing
- BFS-based flood fill for interior/exterior classification
Use Cases
- Preprocessing 3D meshes into voxel grids
- Generating SDFs for geometry processing, physics, or rendering
- Mesh extraction from voxel volumes
- Spatial analysis and computational geometry research
Supported Frameworks
- .NET Standard 2.1
- .NET 7.0
- .NET 8.0
- .NET 9.0
License
ZLab.Discrete is licensed under the PolyForm Noncommercial 1.0.0 license.
TL;DR — You may use, modify, and distribute ZLab.Discrete for noncommercial purposes (including personal projects, education, academic research, nonprofits, and government) subject to the PolyForm-NC terms. Commercial use is not permitted. For commercial licensing, contact dev@zekezhang.com.
See the LICENSE file for more details.
Citation
If you find this library useful in your research or projects, please consider citing it as follows:
@software{zhang2025zlab,
author = {Zeke Zhang},
title = {Zlab.Discrete: A managed C# library for voxelization and distance fields},
year = {2025},
publisher = {GitHub},
url = {https://github.com/zekezhang/Zlab.Discrete},
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|