FS#2218 - RPolyline.appendVertex() doesn't default to width = zero
When I use poly.appendVertex(vector, bulge) the polyline is finally created with NAN widths
This, while the signature explains that bulge, width1 and width2 default to zero.
https://www.qcad.org/doc/qcad/latest/developer/class_r_polyline_entity.html#a9ee706e50d6cc267fc84a85b7c81d5e6
Regards,
CVH
I cannot reproduce:
If you cannot solve the problem, please provide more context.
Sorry Andrew,
I wouldn't trouble myself with filing it ...
Nor circumvented it 8x with a fix in DrawFromCSV.
I can't reproduce it any more.
Even not in an older form: newData = new RPolylineData();
I usually test things out thourough before documenting it.
This time I didn't kept the testfiles as the goal was to create them from CSV.
Recombining with OC might introduce NaN values but I have to exclude that I exploded the created polylines and recombined them back with OC, and that every test again.
While modifiying the script back I see my mistake ...
newShape = new RPolyline(refs, true/false); with for 'refs' an array of RVectors.
@ Line:841, 888, 941 ,975 & 1000 create the NaN's!
My mistake.
Please close the bug report.
Regards,
CVH