orbingol / NURBS-Python

Object-oriented pure Python B-Spline and NURBS library
https://onurraufbingol.com/NURBS-Python/
MIT License
603 stars 153 forks source link

NURBS.Curve.__eq__ returns True for different curves #174

Open tomas16 opened 3 weeks ago

tomas16 commented 3 weeks ago

Describe the bug I have several nurbs curves and they all compare equal to each other, which they shouldn't. The issue seems to be here, where self._precision is 18 and my control points all have coordinates within [-10, 10] in X and Y. Note the same bug exists for the knot vector comparison a few lines up.

To Reproduce Steps to reproduce the behavior: Create 2 different nurbs curves with control points with small coordinate values and compare them.

Configuration: