This project modifies the Ball Pivoting Algorithm (BPA) module from Open3D to make it compatible with PCL (Point Cloud Library) and usable in iOS projects. The library enables high-quality mesh reconstruction from point clouds.
- Optimized for PCL: The BPA module has been adapted to work seamlessly with PCL.
- iOS-ready: The library is tailored for iOS development and can be built using an appropriate toolchain.
- Efficient mesh reconstruction: Generates meshes from input point clouds.
This project depends on several third-party libraries. Their source code is not included in this repository. Please acquire and build these libraries separately:
- PCL: Follow the build instructions at PCL GitHub.
- Boost: Download and build Boost from Boost.org.
- FLANN: Follow the instructions at FLANN GitHub.
- Qhull: Build Qhull from Qhull.org.
- LZ4: Download and build LZ4 from LZ4 GitHub.
Use the provided CMakeLists.txt file to build the library for iOS. Ensure that the necessary toolchain and dependencies are correctly set up.
mkdir build-ios
cd build-ios
cmake -DCMAKE_TOOLCHAIN_FILE=../iOS.cmake ..
makeIntegrate the resulting static library into your iOS project. Use the BallPivoting class and the RunBPA function to perform mesh reconstruction from point clouds and their normals.
Below is an example output of the Ball Pivoting Algorithm applied to a point cloud:
The above image showcases the reconstructed mesh of a bunny model generated using this library.
This project is licensed under the MIT License.
This project includes modifications to the Ball Pivoting Algorithm (BPA) module from Open3D, which is licensed under the MIT License. The original license is as follows:
MIT License
Copyright (c) 2018-2024 Intel Corporation and the Open3D contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For the full text, see the Open3D LICENSE.
- Open3D: Original BPA module source.
- PCL: Used for point cloud operations.