- Status Closed
- Percent Complete
- 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
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
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task