All, Andrew,
Working on polylines, spitting trough arc-segment support and related arc resources I found an arc curiosity that I can visualize in the file below.
- On open (auto zoom) it does not show the whole circle.
- In some zoom states the circle may not show.
- One can hardly select it, TA or a box-select will work.
(this can be troublesome when the isolated circle is part of a drawing with many entities)
- When selected it might not show ... Reference points are visualized but are hard to use as snapping points.
- On copy/paste or move the preview is a dot.
- Set CCW it behaves better.
In fact it is not a circle, it is a full circular arc starting at about 173 degrees (arbitrary chosen) and ending there.
The only thing I did was copying the start angle value into the end angle field of the Property Editor (8 decimal digits).
There is a resource that does this to handle circles as arcs: https://github.com/qcad/qcad/blob/maste ... le.cpp#L87
Sweep angle is reported as zero degrees but the length and area are correct.
Here one can see that it meets the condition of a full circular arc:
https://github.com/qcad/qcad/blob/maste ... c.cpp#L337
Sweep = zero => Bulge factor = zero and zero is less than 1e-6.
Remind that a polyline segment with a bulge below 1e-6 is considered as a straight line segment.
And that a full circular polyline arc segment can not exists (tan(360/4) = err).
Duplicate the circle and move it (preview = dot) somewhat apart.
Set start angle = zero, end angle = zero and the sweep will be 360 degrees.
This full circular arc behaves better as both CW or CCW.
It are these inconsistencies and fixes that makes coding for polylines with bulges fairly difficult.
Merely investigating why the file below is not rendered like this:
Or why the polyline arc-segment is rendered detached here:
Besides several other polylines projects where I got stuck or need to circumvent standard resources.
For example: The chord of an arc is considered in 3D while an arc (arc-segment) or circle can only exist in a flat plane.
Regards,
CVH
Odd circle ... Full circular arc
If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.
Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.
Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Return to “QCAD Troubleshooting and Problems”
Jump to
- General
- ↳ Announcements
- ↳ Chat
- ↳ Site Feedback
- ↳ Pre-sales Questions
- ↳ Introduce Yourself
- QCAD Professional Version
- ↳ QCAD 'How Do I' Questions
- ↳ QCAD Suggestions and Feedback
- ↳ QCAD Voting Corner
- ↳ QCAD Troubleshooting and Problems
- ↳ QCAD Installation and Upgrades
- ↳ QCAD Programming, Script Programming and Contributing
- ↳ QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- ↳ Finished 'Ready to go' Scripts/Plug-in's
- ↳ QCAD Tips and Tutorials
- ↳ QCAD/CAM
- ↳ What do you use QCAD/CAM for?
- QCAD Community Edition
- ↳ QCAD Community Edition
- International Forums
- ↳ Français
- ↳ QCAD Professional
- ↳ QCAD/CAM
- ↳ QCAD Community Edition (Version 3)
- ↳ Deutsch
- ↳ QCAD Professional
- ↳ QCAD/CAM
- ↳ QCAD Community Edition
- ↳ Italiano
- ↳ QCAD Professional
- ↳ QCAD/CAM
- ↳ QCAD Community Edition
- ↳ Español
- ↳ QCAD Professional
- ↳ QCAD/CAM
- ↳ QCAD Community Edition
- ↳ Português
- ↳ QCAD Professional
- ↳ QCAD/CAM
- ↳ QCAD Community Edition
- QCAD Book
- ↳ QCAD - An Introduction to Computer-Aided Design
- ↳ QCAD - Una Introducción al Diseño Asistido por Ordenador
- ↳ QCAD - Eine Einführung in computerunterstütztes Zeichnen (CAD)
- QCAD Part Libraries
- ↳ General
- ↳ Creating DXF/DWG items
- ↳ Creating SVG items
- ↳ Meta Data
- dxflib
- ↳ dxflib Suggestions and Feedback
- ↳ dxflib 'How Do I' Questions
- ↳ dxflib Troubleshooting and Problems
- Archive
- ↳ vec2web Format Converter
- ↳ vec2web Suggestions and Feedback
- ↳ vec2web 'How Do I' Questions
- ↳ vec2web Troubleshooting and Problems
- ↳ QCAD Development
- ↳ Translations
- ↳ QCAD Professional (2.1/2.2)
- ↳ QCAD 2.1/2.2 Suggestions and Feedback
- ↳ QCAD 2.1/2.2 'How Do I' Questions
- ↳ QCAD 2.1/2.2 Troubleshooting and Problems
- ↳ QCAD 2.1/2.2 Installation and Upgrades
- ↳ QCAD 2.1/2.2 Developers
- ↳ QCAD Community Edition (2.0)
- ↳ QCAD Community 'How Do I' Questions
- ↳ QCAD Community Patches
- ↳ CAM Expert
- ↳ Announcement
- ↳ CAM Expert Suggestions and Feedback
- ↳ CAM Expert 'How Do I' Questions
- ↳ CAM Expert Troubleshooting and Problems
- ↳ Annonces
- ↳ Ankündigungen
- ↳ Annunci
- ↳ Noticias