Skip to content

wdconinc/FreeCAD_Python_GDML

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

FreeCAD_Python_GDML

FreeCAD python Importer & Exporter for GDML files.

Note: Sister development https://github.com/KeithSloan/FreeCAD_Geant4

Installation Linux

To incorporate into FreeCAD linux.

Assumes you already have FreeCAD and git installed

  1. Clone repository git clone https://github.com/KeithSloan/FreeCAD_Python_GDML.git

  2. cd FreeCAD_Python_GDML

  3. make sure softLink script is executable

  4. Run softLink script to soft link the module into FreeCAD and FreeCAD-daily systems

Exporter

The following FreeCAD objects are output as GDML equivalents

  1. Cube ( GDML - Box )
  2. Cone ( GDML - Cone )
  3. Cylinder ( GDML - Tube )
  4. 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.

Future Development Road Map

  • 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

Need to sort out AIR definition

Feedback

To contact the Author email keith[at]sloan-home.co.uk

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Shell 0.6%