Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 1.79 KB

README.md

File metadata and controls

73 lines (48 loc) · 1.79 KB

Voxelizer and SDF

This project produces an occupancy 3D grid and a signed distance function (SDF) 3D grid from a mesh. This project uses polyscope for visualization, tinyply for the mesh IO, stb for images IO, openMP for parallelization, and nanoflann for kNN search.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

The only dependency is Eigen, which can be installed as follows:

sudo apt-get update
sudo apt-get install libeigen3-dev

Installing

The project can be compiled using the following sequence:

git clone https://github.com/rFalque/voxelization_and_sdf.git
cd voxelization_and_sdf
mkdir build
cd build
cmake ../src
make

Additionally, we use OMP for parallelizing the computation. The number of threads can be set with

export OMP_NUM_THREADS=<number of threads to use>

Running the demo

To compute the SDF

./test_SDF

To run the voxelizer

./test_occupancyGrid

To run the colored voxelizer

./test_occupancyGridWithColor

examples

SDF computation:

Graph visualization

Voxelized Lucy:

Voxelizer

Color voxelizer:

Voxelizer

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details