mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 17:12:07 +00:00
In generate_contact_points, the rotated_dims don't actually generate a Point, but generate an abstract expression that holds a reference to bounding_box_size. Unfortunately, this goes wrong because bounding_box_size ages out instantly; GCC's Address Sanitizer complains that this is a "stack-use-after-scope" issue. Interestingly, the Eigen documentation says that this is a known problem with using C++11 "auto" to generate matrices (which a Point is)! It is buried here: https://eigen.tuxfamily.org/dox/TopicPitfalls.html This is probably an extremely theoretical correctness improvement, and also an extremely theoretical performance improvement. But it is an improvement nonetheless, and, more importantly, it enables me to continue to run the slicer with Address Sanitizer turned on to find other potential issues.
177 KiB
177 KiB