.. | |||
README.md | 8 months ago | ||
UTIF.js | 8 months ago | ||
build.gvxr | 8 months ago | ||
build.gvxr-1 | 8 months ago | ||
build.gvxr-3 | 8 months ago | ||
pako.js | 8 months ago | ||
xray.pgm | 8 months ago | ||
xraysim | 8 months ago | ||
xraysim.cxx | 8 months ago | ||
xraysim.js | 8 months ago | ||
xraysim.o | 8 months ago | ||
xraysim.run.js | 8 months ago | ||
xraysim1 | 8 months ago | ||
xraysim1.o | 8 months ago |
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.