Toolkits for monte carlo dose simulation and visualization
There are 3 sets of code here which are designed to help clinicians and researchers use GEANT4 or TOPAS (MC) in conjunction with 3D Slicer for dose visualization and comparison
The first piece of code, "STLfromDicomRN.m" takes the Dicom plan files for double scatter proton plans generated with Varian Eclipse and generates models of the apertures and compensators in the plan in ".STL" format. This file uses the "stlwrite" and "surf2solid" functions included in the zip file. These files can be imported into the MC simulation geometry.
The 2nd is a set of codes for manipulating Dicom dose files and analyzing the dose. The "NormalizeDicomDose.m" code normalizes the MC dose to the dose at isocenter of the Eclipse dose and contains instructions for how to normalize to other points or volumes. The "ProfilePlot.m" code simply generates dose profiles comparing the doses of two dose files between two points.
To be included is a matlab gui which performs gamma analysis on the dose plane you select and code which converts Geant4 dose output files into DICOM dose files which can be viewed in 3D Slicer
Cite As
Leland Muller (2025). Toolkits for monte carlo dose simulation and visualization (https://in.mathworks.com/matlabcentral/fileexchange/68660-toolkits-for-monte-carlo-dose-simulation-and-visualization), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
