Skip to content

C++11 code for building a 3D occupancy grid an SDF 3D grid from a mesh

License

Notifications You must be signed in to change notification settings

rFalque/voxelization_and_sdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

C++11 code for building a 3D occupancy grid an SDF 3D grid from a mesh

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published