Is there a faster alternative to sympy to compute intersection of 3D segments and planes?

Viewed 96

I am writing a Python code that needs to analyze if thousands of segments intersect with a cube. My approach has been to use SYMPY to compute the intersection between each segment and each face of the cube. This is painfully slow, and I need something that is at least one order of magnitude faster. Any alternative library or approach? Thanks!

0 Answers
Related