FreeCAD python Importer & Exporter for GDML files.
Note: Sister development https://github.com/KeithSloan/FreeCAD_Geant4
To incorporate into FreeCAD linux.
Assumes you already have FreeCAD and git installed
-
Clone repository git clone https://github.com/KeithSloan/FreeCAD_Python_GDML.git
-
cd FreeCAD_Python_GDML
-
make sure softLink script is executable
-
Run softLink script to soft link the module into FreeCAD and FreeCAD-daily systems
The following FreeCAD objects are output as GDML equivalents
- Cube ( GDML - Box )
- Cone ( GDML - Cone )
- Cylinder ( GDML - Tube )
- Sphere ( GDML - Sphere )
If not handled as above then objects shapes are checked to see if planar, if yes converts to Tessellated Solid with 3 or 4 vertex as appropriate. If not creates a mesh and then a Tessellated solid with 3 vertex.
- Implement Booleans operations
- Workbench
- Analize FreeCAD file for direct conversion of object to GDML solid
- Display mesh for objects that will not directly convert
- Provide options to control meshing objects that will be Tessellated
- Icons to Analize and Export
- Add function for objects that can be directly converted
- Use lxml rather than etree (Needs apt-get install python-lxml)
- Tidy softLink script
- Make FreeCAD installable workbench
- Documentation
- Investigate handling of Materials
For NIST Materials database see http://physics.nist.gov/PhysRefData
To contact the Author email keith[at]sloan-home.co.uk