bug report: audit of hatch polyline loop
bug report: audit of hatch polyline loop
hi,
i have a recent copy of the dwgdirect sdk, and i am writing a hatch with polyline loops.
one loop looks like a rectangle where the left and right ends are bulge arcs. if i number the 4 sides of the rectangle starting with 1, clockwise, starting with the top side, then segment 2 and 4 are actually bulge arcs.
in addition, the points between 2,3 and 3,4 are duplicated, so the bulge values for the vertices are on 1,2, and the second vertex at 3,4. if i don't call the auditdatabase method, this loop writes and draws in autocad without issue.
if i do call auditdatabase when i write this loop, the vertices are changed, but the bulge values are no longer correct. the loop then has only 4 vertices instead of 6, but the only bulge value is between 1,2. the loop now has a straight line instead of the previous bulge arc at 4.
it appears that the bulges are not being synchronized correctly when the duplicate vertices are removed by the audit. either that, or the wrong duplicate vertices are being removed. the first, not the second, duplicate vertex at a location in a polyline should be removed, so that the bulge value of the second vertex, as the start of the next segment, is preserved.
thanks.
last edited by
dcm@safe.com; 9th november 2006 at 01:58 pmfff">.
can you attach a sample?
vladimir
a code sample? no. a data sample? yes. here is the dataset that my code wrote without calling auditdatabase, and the written dataset when i did call auditdatabase.
if you run an auditdatabase on the 'no_audit' dataset you should see the issue. the result for me is the other 'audit' dataset that i have provided.
attached files (23.1 kb, 5 views)
(23.1 kb, 3 views)
thank you for the sample, we'll fix the issue
fyi: some versions of autocad failed to load such hatches from dxf. it is better to avoid duplicated points in hatch boundaries.
vladimir