ZLab.Discrete ZLab.Discrete
ZLab.Discrete ZLab.Discrete
Developed by Zeke Zhang

Search Results for

    Edit this page

    Zlab.Discrete

    Icon

    license-badge

    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.

    • Documentation
    • Getting Started

    Features

    Voxelization

    • Anisotropic voxelization (non-uniform voxel sizes)
    • Dense occupancy grids
    • Sparse boundary voxelization
    • Extensible grid structures via IGrid<T> interface and GridBase class

    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

    Supported Geometries

    • Triangle meshes (indexed and unindexed)
    • Polyline

    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 proprietary software (since v0.0.4). All rights reserved. No part of this software, source code, documentation, or related files may be used, copied, modified, merged, published, distributed, sublicensed, or sold in any form or by any means, without the prior express written permission of the author.

    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},
    }