XraySim / xraysim /
..
README.md Update README.md 8 months ago
UTIF.js Tue 29 Aug 2023 09:29:11 PM CEST 8 months ago
build.gvxr Tue 29 Aug 2023 09:29:11 PM CEST 8 months ago
build.gvxr-1 Tue 29 Aug 2023 09:29:11 PM CEST 8 months ago
build.gvxr-3 Tue 29 Aug 2023 09:29:11 PM CEST 8 months ago
pako.js Tue 29 Aug 2023 09:29:11 PM CEST 8 months ago
xray.pgm Tue 29 Aug 2023 09:29:11 PM CEST 8 months ago
xraysim Tue 29 Aug 2023 09:29:11 PM CEST 8 months ago
xraysim.cxx Tue 29 Aug 2023 11:54:46 PM CEST 8 months ago
xraysim.js Tue 29 Aug 2023 09:29:11 PM CEST 8 months ago
xraysim.o Tue 29 Aug 2023 09:29:11 PM CEST 8 months ago
xraysim.run.js Tue 29 Aug 2023 09:29:11 PM CEST 8 months ago
xraysim1 Tue 29 Aug 2023 11:54:46 PM CEST 8 months ago
xraysim1.o Tue 29 Aug 2023 11:54:46 PM CEST 8 months ago
README.md

xraysim

Sources and (Linux x86) binaries.

Note: xraysim relies on gvxr requiring a GPU with opengl capability (4.5 and higher). Neither non-Nvidia nor OpenGL lower versions work. You will get black images. On not supported systems use xraysim1 with the -soft option. The computation is performed with a CPU implementation of OpenGL (at least version 3 is supported). Commonly, the speed degradation is neglectable.

usage: xraysim [-s(ourcePos) x y z] [-d(etPos) x y z] [-D(detUpVec) x y z]
               [-e(nergy) MeV] [-S(caleIntensity) min max range] [-n addgaussnoiseperc]
               [-r(otate-z) degree] [-R(otate) x y z] [-ct(-rotate-z) delta degree]
               [-w pixels]  [-h pixels] [-p pixelsize] [-g openglwinsize]
               [-show(_scene)] [-soft(ware_cpu_renderer)] [-o out[%04d].tif/pgm]
               [-u density g/cm3] file.stl [-u density file2.stl]

Note: A STL file describes volumes by polygon meshs. STL is not very well (or completely not) suitable for multi-density models. For this reason, a structure model must be decomposed in parts with different densities. All the parts are merged again in xraysim. Use a -u density1 part1.stl -u density2 part2.stl .. chain to provide all parts of the model. Using openscad, conditional expressions can be used to export parts for different densities of the entire model.