Open dgDSA opened 10 months ago
Doing Advent of Code? :)
I had the same problem yesterday trying to figure out the bug in my code as it wasn't working. It does indeed turn out that the function move on line 85 of segment.py doesn't move self.line, which in turn is used by intersection! I just added a self.line.move(v) and now everything works! Spent hours on that yesterday!
After moving a Segment by (0, 0, -1), the "in" and "intersection" operations still take the original position into account.
Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
This may be caused by a failure to move the "line" attribute accordingly: