By Arsyad Kamili.
This project implements CGAL's 3D Alpha Wrapping algorithm to reconstruct a surface from a stream of point cloud. The stream is processed in batches to save computational resources. The project is implemented in C++ and uses CGAL library for the surface reconstruction. The main purpose of this project is to visualize the surface reconstruction in real-time; meaning that another input, the pose of the device, is visualized on the reconstructed object. This project is still under development and this readme will be updated as the project progresses.
Below is an example 3D visualization of alpha wrapping algorithm on a kitten point cloud with different parameters.
initial load
adjust relative alpha and offset values
reconstructed surface visualization
Once installed, you can run
point_cloud_surface_reconstruction <path_to_point_cloud_data>
and try interacting with the the panel and viewer.
- CGAL - Computational Geometry Algorithms Library
- Pangolin - Lightweight portable rapid development library for managing OpenGL display / interaction and abstracting video input. OpenGL is required to install Pangolin. Other version (at least 0.6 and above) of Pangolin should also work but I used version 0.8.
A normal mkdir build;cd build;cmake ..; make
should work just fine to build the program provided that you already took care of the dependencies.
- 01/08/2023 - Initial commit - running
./main <path_to_point_cloud> <alpha> <offset>
will output the reconstructed object in a.off
file. - 03/08/2023 - Successfully drawn the mesh using pangolin and set up the thread structure. Design improvement is needed.
- 04/08/2023 - Added menu, surface drawing, and other improvements.