The file is a *.dxf one, so extracting datas gives me an array like the following:
% assuming a 2D drawing, so only x- and y- coords...
%
% drawing a triangle (with edges not well sorted)
% first line from (0,0) to (3,0)
% second line from (0,4) to (0,0)
% third line from (3,0) to (0,4)
lines=[0,0,3,0,0,4,0,0,3,0,0,4]
% the array lines, of course, will have lots of couples of vertex (a line goes from a point (x1,y1) to the second (x2,y2) )
%
% Moreover I can't be sure if between these vertex could be other vertex that belongs other polygon..
% I need to understand which of these vertex build a polygon, so I need to understand which lines form a continuous loop, a path....