https://github.com/niess/geant4-stl
Import binary STL files in Geant4
https://github.com/niess/geant4-stl
geant4 stl-files
Last synced: 2 months ago
JSON representation
Import binary STL files in Geant4
- Host: GitHub
- URL: https://github.com/niess/geant4-stl
- Owner: niess
- License: mit
- Created: 2019-08-02T11:00:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-02T11:05:33.000Z (almost 6 years ago)
- Last Synced: 2025-02-01T19:14:24.215Z (4 months ago)
- Topics: geant4, stl-files
- Language: C++
- Size: 360 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# G4STL
_Import binary STL files in Geant4_This is a Work In Progess. Currently the `Read` functionality is only
implemented for binary STL files. Basic usage is the following:
```
#include "G4STL.hh"
...
{
G4STL stl;
G4TessellatedSolid * solid = stl.Read("/path/to/file.stl");
}
```## Installation
The `G4STL` library and the [test program](test/read.cc) can be compiled with
CMake using the provided [`CMakeLists.txt`](CMakeLists.txt), e.g. as:```
cd geant-stl
mkdir -p build && cd build
cmake ..
make install
```The default installation is done to the source directory, i.e. `geant-stl` in
the previous example.