Skip to content
Snippets Groups Projects
Commit b37d3c0b authored by Guillaume Damiand's avatar Guillaume Damiand
Browse files

Add scripts

parent 97d10008
No related branches found
No related tags found
No related merge requests found
#!/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
RUN.md 0 → 100644
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment