You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,13 @@ This is the opensource reference implementation of the SIGGRAPH 2020 paper [Incr
22
22
23
23
## Build
24
24
25
-
*`python build.py`
25
+
You can either use `python build.py` or
26
+
```
27
+
mkdir build
28
+
cd build
29
+
cmake -DCMAKE_BUILD_TYPE=Release ..
30
+
make -j4
31
+
```
26
32
27
33
### Dependancies
28
34
@@ -40,6 +46,10 @@ installed at a system level
40
46
* IPC also supports using [Eigen](http://eigen.tuxfamily.org/) or [AMGCL](https://github.com/ddemidov/amgcl) as linear solver, which can be set via `IPC_LINSYSSOLVER` in `CMakeLists.txt`. To use custom linear solvers, you can implement a new interface (subclass) to our `LinSysSolver` class.
41
47
*[libigl](https://libigl.github.io/), [OSQP](https://osqp.org/), [AMGCL](https://github.com/ddemidov/amgcl), and [TBB](https://software.intel.com/content/www/us/en/develop/tools/threading-building-blocks.html): downloaded and built through CMake
42
48
49
+
### Without OpenGL
50
+
51
+
If your system does not have the required OpenGL libraries, you can disable the viewer using the CMake argument `-DIPC_WITH_OPENGL=OFF`. It is important to then run IPC in offline mode (see below).
52
+
43
53
### 2D?
44
54
45
55
IPC is only implemented for 3D simulation.
@@ -71,6 +81,12 @@ of the sub-project (e.g. `DIAGNOSTIC`, `MESH_PROCESSING`). You can also set thes
71
81
72
82
Please see our [quick start guide](https://github.com/ipc-sim/IPC/wiki) for a `hello world` example with various settings. The output of each script will be saved into a separate folder in `output/`.
73
83
84
+
### Offline Mode
85
+
86
+
It is possible to run IPC with and without the viewer. By default, the `batch.py` script runs IPC with the viewer. If you provide the argument `--offline` to `batch.py` then it will run IPC in offline mode (i.e. without the viewer).
87
+
88
+
If you are running the `IPC_bin` executable directly then the first argument controls the mode. Mode `10` runs IPC with the viewer and is the default in the `batch.py`. Mode `100` runs IPC in offline mode (without the viewer). See `IPC_bin --help` for more detail.
89
+
74
90
### HPC
75
91
76
92
From the IPC root directory use `sbatch run.sh` to processes all the input
0 commit comments