diff --git a/INSTALLATION.md b/INSTALLATION.md new file mode 100644 index 0000000000000000000000000000000000000000..d917905f575c8bcb5db85420598aab1b5d0bf442 --- /dev/null +++ b/INSTALLATION.md @@ -0,0 +1,31 @@ +#!/bin/bash +# Installation script for Ubuntu 22.04 + +# Install packages + +sudo apt-get update +sudo apt-get install g++ cmake git +sudo apt-get install libqt5opengl5-dev libqt5svg5-dev qtbase5-dev qtscript5-dev +sudo apt-get install libboost-dev libboost-program-options-dev libboost-system-dev libboost-thread-dev +sudo apt-get install libgmp-dev libmpfr-dev zlib1g-dev libtet1.5-dev libassimp-dev + +# Download code + +cd +git clone https://github.com/CGAL/cgal.git +cd cgal +git checkout 2b547ec58a9e34458792cb3f09ead399bb6dd075 +cd .. +git clone https://gitlab.liris.cnrs.fr/gdamiand/3d-query-replace.git +cd 3d-query-replace/ + +# Compile the two programs ```hexa-subdivision``` and ```tetra-to-hexa``` + +cd +cd 3d-query-replace/ +mkdir builds +cd builds +mkdir release +cd release +cmake -DCMAKE_BUILD_TYPE=Release -DCGAL_DIR=../../../cgal/ ../../src +make diff --git a/RUN.md b/RUN.md new file mode 100644 index 0000000000000000000000000000000000000000..63cba25ebceaecb0b7af7c3593b5d77a9d22f121 --- /dev/null +++ b/RUN.md @@ -0,0 +1,35 @@ +#!/bin/bash +# Run experimentations + +cd +cd 3d-query-replace/builds/release + +# 5.1 Hexahedral subdivision + +./hexa-subdivision ../../data/mesh1.off -lmax 7 +./hexa-subdivision ../../data/mesh2.off -lmax 7 +./hexa-subdivision ../../data/mesh3.off -lmax 7 + +# 5.2 Marching-cube + +./hexa-subdivision ../../data/mesh1.off -lmax 7 -marching-cubes +./hexa-subdivision ../../data/mesh2.off -lmax 7 -marching-cubes +./hexa-subdivision ../../data/mesh3.off -lmax 7 -marching-cubes + +# 5.3 Conformal Mesh + +./hexa-subdivision ../../data/mesh1.off -lmax 7 -create-transitions +./hexa-subdivision ../../data/mesh2.off -lmax 7 -create-transitions +./hexa-subdivision ../../data/mesh3.off -lmax 7 -create-transitions + +# Comparison with version WITHOUT signature: + +./hexa-subdivision ../../data/mesh1.off -lmax 7 -create-transitions -no-signature +./hexa-subdivision ../../data/mesh2.off -lmax 7 -create-transitions -no-signature +./hexa-subdivision ../../data/mesh3.off -lmax 7 -create-transitions -no-signature + +# 5.4 Mesh Transformation + +./tetra-to-hexa ../../data/mesh1.off +./tetra-to-hexa ../../data/mesh2.off +./tetra-to-hexa ../../data/mesh3.off