Skip to content

Commit

Permalink
fix: respect rotation/position transformation in CAD_MultiVolume
Browse files Browse the repository at this point in the history
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>
```
  • Loading branch information
wdconinc authored and MarkusFrankATcernch committed May 4, 2023
1 parent 84f2e45 commit 11d0ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DDCAD/src/plugins/CADPlugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 11d0ab1

Please sign in to comment.