read_dxf_file.m
PURPOSE:
Crude read of Autocad DXF files
SYNTAX:
[xyz,type]= read_dxf_file(filename,two_d);
INPUT: [default]
filename= ['dfx_file.dxf']; dxf file name
two_d= 1; dont read and load any 3rd Z components [0]
OUTPUT:
xyz = point matrix defined by end points of lines contining 6 columns
[x1,y1,z1,x2,y2,z2] where 1 is start of line and 2 is end
type = type of entity, 1=point(vertex), 2=line, 3=arc
NOTE: ONLY SET UP FOR LINE'S
easily can be set up to read other components using LINE example
Dependencies