eic / npsim

DD4hep-based simulation plugins, front-end, and related utilities
0 stars 2 forks source link

fix: respect OCCT precision in npdet_to_step #22

Closed wdconinc closed 7 months ago

wdconinc commented 7 months ago

Briefly, what does this PR introduce?

This PR fixes failing exports for cylinders/cones with differences in rmin or rmax that are smaller than OCCT's internal Precision::Confusion(), but still not larger than std::numeric_limits<double>::epsilon().

What kind of change does this PR introduce?

Please check if this PR fulfills the following:

Does this PR introduce breaking changes? What changes might users need to make to their code?

No.

Does this PR change default behavior?

No.