Skip to content

Commit 07ed862

Browse files
committed
SBGeom scripts
1 parent 139d57f commit 07ed862

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

scripts/setup_sbgeom.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
#!/bin/bash
3+
#
4+
# Setup for SBGeom - A simple package for creating blanket geometries
5+
# derived from Fourier Surfaces. Package author: Timo Bogaarts, TU Eindhoven
6+
#
7+
8+
if [ ! -d "SBGeom-main" ] ; then
9+
echo "Extracting SBGeom-main..."
10+
unzip SBGeom-main.zip
11+
fi
12+
13+
pushd SBGeom-main
14+
git clone https://github.com/pybind/pybind11
15+
git clone https://gitlab.com/libeigen/eigen.git
16+
export EIGEN3_INCLUDE_DIR=$PWD/eigen/
17+
cmake -DCMAKE_BUILD_TYPE=Release -S . -B build/
18+
pushd build
19+
make -j 12
20+
cp *.so ../SBGeom
21+
popd
22+
pip install -e .
23+
popd

0 commit comments

Comments
 (0)