Bug in normal(obj::(ConeMantle...)
bazzadino opened this issue · 2 comments
bazzadino commented
The transformation of "obj_normal" back to the global coordinate system should be a pure rotation and not a full _transform_into_global_coordinate_system(...) (i.e. rotation&translation ) that can stretch and change the length of obj_normal.
Removing the spurious translation has fixed some charge-drift problems I had in simulating a coaxial detector with the passivation on a cylindrical surface.
I suppose that the same argument applies also to ElipsoidMantle and ThorusMantle, but, sorry, I have not checked it in details.