-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from andreacasalino/Update
LICENSE + CI sript updated + general code improvements
- Loading branch information
Showing
33 changed files
with
1,194 additions
and
558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,22 +16,31 @@ jobs: | |
include: | ||
- name: ubuntu-gcc | ||
os: ubuntu-latest | ||
compiler_opt: "-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -G \"Unix Makefiles\"" | ||
compiler_opt: "-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++" | ||
build_system: '-G Ninja' | ||
- name: ubuntu-clang | ||
os: ubuntu-latest | ||
compiler_opt: "-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -G \"Unix Makefiles\"" | ||
compiler_opt: "-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++" | ||
build_system: '-G Ninja' | ||
- name: windows-VS | ||
os: windows-latest | ||
compiler_opt: "" | ||
build_system: '' | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
- name: show HEAD | ||
run: git rev-parse HEAD | ||
- name: Install openMp | ||
if: matrix.name == 'ubuntu-clang' | ||
run: sudo apt-get update; sudo apt-get install -y libomp5 libomp-dev | ||
- name: Install Ninja | ||
if: matrix.build_system == '-G Ninja' | ||
uses: seanmiddleditch/gha-setup-ninja@master | ||
- name: CMake configure | ||
run: cmake -B./build -DCMAKE_INSTALL_PREFIX:STRING=./artifacts/ -DBUILD_QUICK_HULL_TESTS=ON -DCMAKE_CONFIGURATION_TYPES="Release" -DCMAKE_BUILD_TYPE:STRING=Release ${{ matrix.compiler_opt }} | ||
run: cmake -B./build -DCMAKE_INSTALL_PREFIX:STRING=./artifacts/ -DFast-Quick-Hull-BUILD_SAMPLES=OFF -DFast-Quick-Hull-BUILD_TESTS=ON -DCMAKE_CONFIGURATION_TYPES="Release" -DCMAKE_BUILD_TYPE:STRING=Release ${{ matrix.build_system }} ${{ matrix.compiler_opt }} | ||
- name: Build | ||
run: cmake --build ./build --config Release | ||
- name: Install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
bin | ||
build | ||
.vscode | ||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,8 @@ | |
* report any bug to [email protected]. | ||
**/ | ||
|
||
#include <Logger.h> | ||
#include <Utils.h> | ||
|
||
#include <iostream> | ||
|
||
int main() { | ||
|
@@ -23,8 +24,8 @@ int main() { | |
logConvexhull(convex_hull_facets_incidences, convex_hull_normals, cloud, | ||
"Sample01.json"); | ||
|
||
std::cout << "call 'python Plotter.py Sample01.json' to see results" | ||
<< std::endl; | ||
std::cout << "call '" << PYTHON_CMD | ||
<< " Plotter.py Sample01.json' to see results" << std::endl; | ||
|
||
return EXIT_SUCCESS; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,8 @@ | |
* report any bug to [email protected]. | ||
**/ | ||
|
||
#include <ImporterSTL.h> | ||
#include <Utils.h> | ||
|
||
#include <iostream> | ||
|
||
int main() { | ||
|
@@ -22,12 +23,11 @@ int main() { | |
stlNames.push_back("Snake"); // 3691 vertices | ||
stlNames.push_back("Eagle"); // 4271 vertices | ||
|
||
for (auto it = stlNames.begin(); it != stlNames.end(); ++it) { | ||
std::cout << "computing convex hull of " << *it; | ||
for (const auto &name : stlNames) { | ||
std::cout << "computing convex hull of " << name; | ||
|
||
// import the stl describing the shape of this animal | ||
const std::string stl_location = getAnimalSTLLocation(*it); | ||
const auto vertices_cloud = importSTL(stl_location); | ||
const auto vertices_cloud = importAnimalStl(name); | ||
|
||
// compute the convex hull of of the imported vertices cloud | ||
std::vector<hull::Coordinate> convex_hull_normals; | ||
|
@@ -38,10 +38,10 @@ int main() { | |
// Log the result into a textual file, which can be visualized | ||
// running the python script Plotter.py | ||
logConvexhull(convex_hull_facets_incidences, convex_hull_normals, | ||
vertices_cloud, *it + ".json"); | ||
vertices_cloud, name + ".json"); | ||
std::cout << " done" << std::endl; | ||
std::cout << "call 'python Plotter.py " << *it << ".json " << stl_location | ||
<< "' to see results" << std::endl | ||
std::cout << "call '" << PYTHON_CMD << " Plotter.py " << name << ".json " | ||
<< getAnimalStlPath(name) << "' to see results" << std::endl | ||
<< std::endl; | ||
} | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.