Sketches : GDML Object from FreeCAD Sketches - KeithSloan/GDML GitHub Wiki

Export of FreeCAD sketches as GDML objects.

The GDML workbench now supports creating a GDML object from a FreeCAD Sketch currently

Restrictions

  • Sketches should be made in the X-Y plane (created objects can be rotated afterwards)
  • Extrusions and revolutions along the principal x, y, z axes are fully supported; revolves around arbitrary axes may not render correctly in GEANT4's visualisation but do not affect simulation results

Document structure

  • Extrusion should be in a single GDML volume (FreeCAD Part)

Allocated Material

Suggestion is to use toolbar Set Material facility.

On GDML Export

  • The extruded sketch is processed to create a series of booleans of GDML solids.
  • Import of the exported file will show the booleans and structure in the FreeCAD Treeview

Display in GEANT4

  • Some objects will only display as point clouds, this is due to limitations in Geant4 ability to display certain forms, it does not affect any simulation
  • Solution is to display everything as a cloud by issuing

/vis/viewer/set/style cloud