QCAD Bugtracker

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category QCAD (main)
  • Assigned To
    andrew
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 3.28.1
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: QCAD Bugtracker
Opened by CVH - 06.06.2023
Last edited by andrew - 07.06.2023

FS#2476 - Draw > Circle > Circle3P: Creates null-circle with co-linear points

Andrew,

With 3 co-linear points:
- Arc3P will warn the user that an arc can’t be created (Line 141).
- Circle3P creates a null-circle without issuing a similar warning (Line 149).

The difference sits in ShapeAlgorithms.js
- ShapeAlgorithms.createArcFrom3Points Line 1465 checks if the returned arc isValid.
- ShapeAlgorithms.createCircleFrom3Points Line 1436 checks if the returned circle isNull.

Similar as RArc.cpp at Line 108 RCircle.cpp returns an RCircle() at Line 74 when there is no intersection of the two middle lines.
An RCircle() isn’t a valid circle as such but it is not nothing.

The error from ShapeAlgorithms.js is also treated somewhat different in the pickCoordinate event of Arc3P vs Circle3P.

Regards,
CVH

Closed by  andrew
07.06.2023 18:22
Reason for closing:  Fixed

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing