FS#1289Spline from fit points: load error for non-periodic but closed splines
- Type
- Bug
- Status
- Closed
- Resolution
- Fixed
- Category
- QCAD (main)
- Severity
- Low
- Priority
- Low
- Reported version
- 3.11.3
- Operating system
- All
- Reported
- 2015-11-04 by Husky
- Closed
- 2015-11-04 by andrew
After saving an open designed Spline QCad will open it the next time as a closed spline.
Trying to fix this in the Property Manager using "Closed Periodic yes/no" leads to an open but broken spline.
Pic 1 = designed
Pic 2 = saved/opened from HD
Pic 3 = Try to fix this with the Property Manager
Closure comment
Fixed by guessing that a spline is periodic if its start and end tangents are not 0,0 and equal. This should cover the most common cases.



Comments (2)
Unfortunately, open splines with start point == end point and closed periodic splines are stored almost identically in DXF/DWG. The only difference are the start and end tangents which are currently not supported by QCAD.
One possible work around would be to introduce a minuscule distance between the first and last fit point (e.g. 0.000001).
Good to know - thanks Andrew. ;-)