Ticket #2641 (closed: fixed)
hexagonal objects in ShapeFactory can be defined invalid
Reported by: | Anders Markvardsen | Owned by: | Anders Markvardsen |
---|---|---|---|
Priority: | major | Milestone: | Iteration 28 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Roman Tolchenov |
Description
James Lord in the process of defining more accurate IDF for HIFI defined a hexagonal shaped detector which resulting in a wrong detector object, more specifically
<hexahedron id="shape">
<left-front-bottom-point x="0.0" y="-0.0031" z="-0.037" /> <right-front-bottom-point x="0.0" y="0.0031" z="-0.037" /> <left-front-top-point x="0.0" y="-0.0104" z="0.037" /> <right-front-top-point x="0.0" y="0.0104" z="0.037" /> <left-back-bottom-point x="0.005" y="-0.0031" z="-0.037" /> <right-back-bottom-point x="0.005" y="0.0031" z="-0.037" /> <left-back-top-point x="0.005" y="-0.0104" z="0.037" /> <right-back-top-point x="0.005" y="0.0104" z="0.037" />
</hexahedron>
Fix this problem
(In [10013]) Fixed: hexagonal objects in ShapeFactory can be defined invalid Added unit tests for testing this works. re #2641