Skip to content
Snippets Groups Projects
Commit 11d0ab1e authored by Wouter Deconinck's avatar Wouter Deconinck Committed by MarkusFrankATcernch
Browse files

fix: respect rotation/position transformation in CAD_MultiVolume

This respects the specified rotation/position in xml such as:
```xml
  <detectors>
    <detector id="1" name="Shape_PLY_Wuson" type="DD4hep_TestShape_Creator">
      <check vis="Shape1_vis">
        <shape type="CAD_Shape" ref="${DD4hepExamplesINSTALL}/examples/DDCAD/models/PLY/Wuson.ply"/>
        <position x="30 * cm" y="30 * cm" z="30 * cm"/>
        <rotation x="0"  y="0"  z="0"/>
      </check>
      <test type="DD4hep_Mesh_Verifier" ref="${DD4hepExamplesINSTALL}/examples/DDCAD/ref/Ref_PLY_Wuson.txt" create="CheckShape_create"/>
    </detector>
  </detectors>
```
parent 84f2e45e
No related branches found
No related tags found
No related merge requests found
......@@ -253,7 +253,7 @@ static Handle<TObject> create_CAD_Volume(Detector& dsc, xml_h e) {
if ( vol.isValid() ) {
if ( (vol.material() == dsc.air()) && default_material.isValid() )
vol.setMaterial(default_material);
envelope.placeVolume(vol);
envelope.placeVolume(vol,env_trafo);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment