start to fix start point and end point of arcs
Signed-off-by: John Thornton <bjt128@gmail.com>
This commit is contained in:
2252
dxf/test2.dxf
Normal file
2252
dxf/test2.dxf
Normal file
File diff suppressed because it is too large
Load Diff
@ -31,7 +31,11 @@ func main(){
|
|||||||
lines := dxfutil.GetLines(inFile)
|
lines := dxfutil.GetLines(inFile)
|
||||||
entities := dxfutil.GetEntities(lines)
|
entities := dxfutil.GetEntities(lines)
|
||||||
entities = dxfutil.GetEndPoints(entities)
|
entities = dxfutil.GetEndPoints(entities)
|
||||||
start := 1
|
start := 0
|
||||||
entities = dxfutil.GetIndex(start, iniMap["TOLERANCE"], entities)
|
entities = dxfutil.GetIndex(start, iniMap["TOLERANCE"], entities)
|
||||||
|
fmt.Println("sorted")
|
||||||
|
for _, e := range entities {
|
||||||
|
fmt.Printf("%d %s Xs%.3f Ys%.3f Xe%.3f Ye%.3f\n",e.Index, e.G0, e.Xs, e.Ys, e.Xe, e.Ye)
|
||||||
|
}
|
||||||
dxfutil.GenGcode(entities, iniMap["SAVEAS"])
|
dxfutil.GenGcode(entities, iniMap["SAVEAS"])
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user