I am programing MicroStation Addmin, i load all line in a dgn file to List<LineString> and using code:
Polygonizer polygonizer = new Polygonizer();
polygonizer.Add(listLines);
var polys = polygonizer.GetPolygons();
It's ok, but can not get Polygon inside a polygon.
My solution: after get polygon, i scan line inside this polygon, then add to a List<LineString> listHoleLines, it's ok, using polygonizer again
Polygonizer holePolygonizer = new Polygonizer();
holePolygonizer.Add(listHoleLines);
var holePolys = holePolygonizer.GetPolygons();
but it allways return no polygon in holePolys.
thanks.
Vào 13:53:31 UTC+7 Thứ hai, ngày 13 tháng năm năm 2013, Diego Guidi đã viết: