Custom RTree wrapper. FlatCAMRTree and FlatCAMRTreeStorage.

This commit is contained in:
Juan Pablo Caram
2014-12-28 18:06:54 -05:00
parent f528a07751
commit e547386649
3 changed files with 127 additions and 5 deletions

View File

@@ -6,10 +6,11 @@ def pt2rect(pt):
pts = [(0.0, 0.0), (1.0, 1.0), (0.0, 1.0)]
#p = rtindex.Property()
#p.buffering_capacity = 1
#rt = rtindex.Index(properties=p)
rt = rtindex.Index()
p = rtindex.Property()
p.buffering_capacity = 1
p.dimension = 2
rt = rtindex.Index(properties=p)
#rt = rtindex.Index()
# If interleaved is True, the coordinates must be in
# the form [xmin, ymin, ..., kmin, xmax, ymax, ..., kmax].