QCAD

QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help - Check for Updates)

Tasklist

FS#1022 - ZeroLengthDetection fails on arc

Attached to Project: QCAD
Opened by Laurent (upworks) - Thursday, 13 February 2014, 12:55 GMT+2
Last edited by Andrew (andrew) - Monday, 17 February 2014, 09:07 GMT+2
Task Type Bug Report
Category Main
Status Closed
Assigned To Andrew (andrew)
Operating System All
Severity Low
Priority Normal
Reported Version 3.4.6
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi,

it seems zero length detection fails on finding very small arcs.
As in previous 3.0.0 release the script ZeroLengthDetection.js was given, I found that the related line is #65 :

      } else if (isArcEntity(entity)) {
          if (entity.getRadius() <= this.distanceTolerance

should be

      } else if (isArcEntity(entity)) {
          if (entity.getLength() <= this.distanceTolerance

because a big radius with a very small angle will yield a very small arc length ...

Since 3.0.0 or so, the ZeroLengthDetection.js script seems to have been binarized in plugins/libqcadproscripts.so, and is not easily correctible any more ...

This task depends upon

Closed by  Andrew (andrew)
Monday, 17 February 2014, 09:07 GMT+2
Reason for closing:  Fixed
Comment by Andrew (andrew) - Monday, 17 February 2014, 09:07 GMT+2

Thanks.

Loading...