Change signature of decomposeToSurface
The method in volume bounds decomposeToSurfaces
currently takes a shared pointer to a transform, even though ownership of the transform is not required (it is modified in any case). This MR changes the signature to accept a raw pointer.
Also fix wrong implementation of decomposeToSurface
in (Double)TrapezoidBounds. I guess that had never been tested before.