WIP: Added PlyWriter
Added a .ply writer for generating detector material visualisations (together with a simple example).
Also added in a minor bugfix for a possible segmentation fault.
Added a .ply writer for generating detector material visualisations (together with a simple example).
Also added in a minor bugfix for a possible segmentation fault.