NURBS-Python icon indicating copy to clipboard operation
NURBS-Python copied to clipboard

NURBS.Curve.__eq__ returns True for different curves

Open tomas16 opened this issue 1 week ago • 0 comments

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:

  • OS: macOS
  • Python distribution: mambaforge
  • Python version: 3.11.9
  • geomdl install source: PyPI
  • geomdl version/branch: 5.3.1

tomas16 avatar Jun 27 '24 01:06 tomas16