Problem with GSErr ResizePolygon2DDataContour ( const Polygon2DData& poly, long contourIdx, double offset, VAArray<Polygon2DData>* resultPolys )
This function work fine for different polygons but I found one problem for polygon with coordinates
0 – (0.000000, 0.000000)
1 – (10.000000, 0.000000)
2 – (10.000000, 10.000000)
3 – (0.256000, 10.000000)
4 – (0.256000, 9.850000)
5 – (0.150000, 9.744000)
6 – (0.000000, 9.744000)
0 – (0.000000, 0.000000)
And the offset is –0.300
Then the expected results are(which is auto cad is giveing)
0 – (0.300000, 0.300000)
0 – (9.700000, 0.300000)
0 – (9.700000, 9.700000)
0 – (0.5302641, 9.700000)
0 – (0.300000, 9.4697359)
0 – (0.300000, 0.300000)
But we got
0 – (0.300000, 0.300000)
1 – (9.700000, 0.300000)
2 – (9.700000, 9.700000)
3 – (0.556000, 9.700000)
4 – (0.556000, 9.725736)
5 – (0.274264, 9.444000)
6 – (0.300000, 9.444000)
0 – (0.300000, 0.300000)
is there any bug in this function?
Ranga