I've modified attachments a little - if drawing is big now better obtaining points at arced segments for bpoly... I couldn't modify posted code (above) as now it exceeds maximum allowed number of characters... Reply if you now find something wrong...
M.R.