Problem with DXF reading
N R A
nra at cix.compulink.co.uk
Tue May 10 10:42:00 EDT 1994
With reference to my previous messages concerning GRASS reporting
'degenerate lines' when I run v.support on my imported DXF, I believe
I've found the cause. The problem line was an arc whose start angle was
279 and finish angle was 5 - this was converted to a line consisting of
ONE point - hardly the best line ever 8-)
I manually amended the finish angle to 365, i.e. 5 + 360, and then
reimported - worked fine and v.support didn't report any problems.
I've checked the add_arc.c source code and believe that adding a
statement in the second case ensuring that the finish angle is always
greater than the start - by adding 360 degrees.
start_angle = atof(dxf_line);
sflag = 1;
finish_angle = atof(dxf_line);
fflag = 1;
Any thoughts ??
NRA North West
e-mail : nra at cix.compulink.co.uk (use this for general usage)
or sculshaw at cix.compulink.co.uk (Private - only checked at best
More information about the grass-dev