Import XML file with a Volume with a Solid - KeithSloan/GDML GitHub Wiki

XML definitions of a Volume and Solid can be imported.

Example XML file (Resources/Vol-twistedBox.xml)

<xml>
 <solids>
  <twistedbox name="atwistedbox" PhiTwist="1" x="30" y="30" z="30" aunit="rad" lunit="mm"/>
 </solids>
 <volume name="Vol-twistedBox">
    <materialref ref="G4_AIR"/>
    <solidref ref="atwistedbox"/>
 </volume>
</xml>

After import

  • Adjust the Position and Rotation via the Part or Object Placement Property
  • Move the Part Object to correct place in structure
⚠️ **GitHub.com Fallback** ⚠️