Skip to content

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

Open
@tomas16

Description

@tomas16

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThere is a problem with the code or documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions