Skip to content

Commit c79e292

Browse files
Added instructions for building and running the examples.
1 parent 2820632 commit c79e292

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

examples/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
This directory contains a few examples showing different ways of using CADMesh in your Geant4 simulations.
44

5+
To run a example, change to its directory, and do the following:
6+
7+
```
8+
cd basic/
9+
mkdir build/
10+
cd build/
11+
cmake ..
12+
make
13+
./basic # or ./external or ./tetrahedral
14+
```
15+
16+
Make sure to run the binary in the build directory, as the required mesh files are copied there automatically.
17+
518
# Basic
619
Load PLY, STL, and OBJ files into your detector construction using the CADMesh built in readers. There are no dependencies to install. All you need is `CADMesh.hh`.
720

0 commit comments

Comments
 (0)