diff --git a/geometry.cpp b/geometry.cpp index 1f18eac1..263691f8 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1172,6 +1172,12 @@ EX namespace geom3 { return f(); } + template auto in_not_flipped(const T& f) -> decltype(f()) { + light_flip(false); + finalizer ff([] { light_flip(true); }); + return f(); + } + #define IPF(x) geom3::in_flipped([&] { return (x); }) #endif