Test ExplodeTest00.js error

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

Post Reply
WildWolfCJ
Full Member
Posts: 84
Joined: Fri Oct 20, 2023 7:21 am

Test ExplodeTest00.js error

Post by WildWolfCJ » Thu Nov 02, 2023 4:45 am

win10 QCAD3.28 pro
Hi all
I am testing ExplodeTest00.js and there is an error in the attachment. How should I correct it?
Attachments
VeryCapture_20231102114436.jpg
VeryCapture_20231102114436.jpg (165.57 KiB) Viewed 4375 times

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: Test ExplodeTest00.js error

Post by CVH » Thu Nov 02, 2023 7:22 am

Hi,

Not sure what you are trying to accomplish with that.
Please elaborate on your goals.

ExplodeTest00.js is a script to automatically verify if a QCAD release does what is expected.
In this case the first test for the method Modify .. Explode (XP).
This test is accompanied with a testing source, a unique example file in dxf.

TdbTest.js mimics the user interaction coded in ExplodeTest00.js on the intended dxf file.
It select entities, explode them and verifies that the results match with the expected results.

As far as I know TdbTest.js is not included in a standard installation.
I pretty sure that it is a developer tool only available to Andrew.


Lets give an example:
CT3 did not return any tangent circles as candidate when 2 of the indicated circles where concentric:
https://qcad.org/bugtracker/index.php?d ... sk_id=2497
The Apollonius algorithm rejected at least 2 concentric circles and returned nothing.
Andrew include my patch for Apollonius.getSolutionsCCC on GitHub:
https://github.com/qcad/qcad/commit/f05 ... 0a9fc2fdd5
He later added a new standard test and a test file to automatically verify the new functionality in future releases.
https://github.com/qcad/qcad/commit/d85 ... 2bea1d4fdb

The additional CT3 functionality will probably be included in future QCAD releases.
I don't expect it to fail there the 1-4 possible tangents are straightforward, if any.

Regards,
CVH

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”