It is never an easy task to define geometries of complex detectors with c++ which is the default way of GEANT4. The tools introduced on this page allow you to import models from CAD files and then convert them into gdml files which are supported by GEANT4. We have developed two versions: web version and FreeCAD version.
The web tool enables users to view step files using web browsers available for Windows, OS X, Linux, Android, iOS and Windows Phone and convert them to GEANT4 gdml files. Features:
FreeCAD is a general purpose free parametric 3D CAD modeler. The converter has already integrated with FreeCAD as a workbench.
The workbench Itself as well as FreeCAD allows you:
The source code can be found on the github repo https://github.com/drhlxiao/g4cad