Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix proto layer range for straw surfaces (#3443)
This PR fixes the problem when obtaining the extent of a layer with straw surfaces. When the `lseg` of a straw surface is 1, the number of vertices of the polyhedron representation is 3, which makes the `detail::VerticesHelper::onHyperPlane` [here](https://github.com/acts-project/acts/blob/main/Core/src/Geometry/Polyhedron.cpp#L52) and the `detail::VerticesHelper::isInsidePolygon` [here](https://github.com/acts-project/acts/blob/main/Core/src/Geometry/Polyhedron.cpp#L62) return `true` and further set the rMin of the extent to zero ([here](https://github.com/acts-project/acts/blob/main/Core/src/Geometry/Polyhedron.cpp#L63)), which is problematic for straw layers.
- Loading branch information