Juan Pablo Caram пре 9 година
родитељ
комит
74e936ba02
1 измењених фајлова са 15 додато и 1 уклоњено
  1. 15 1
      camlib.py

+ 15 - 1
camlib.py

@@ -722,8 +722,11 @@ class Geometry(object):
     @staticmethod
     @staticmethod
     def path_connect(storage, origin=(0, 0)):
     def path_connect(storage, origin=(0, 0)):
         """
         """
+        Simplifies paths in the FlatCAMRTreeStorage storage by
+        connecting paths that touch on their enpoints.
 
 
-        :return: None
+        :return: Simplified storage.
+        :rtype: FlatCAMRTreeStorage
         """
         """
 
 
         log.debug("path_connect()")
         log.debug("path_connect()")
@@ -3921,6 +3924,12 @@ def distance(pt1, pt2):
 
 
 
 
 class FlatCAMRTree(object):
 class FlatCAMRTree(object):
+    """
+    Indexes geometry (Any object with "cooords" property containing
+    a list of tuples with x, y values). Objects are indexed by
+    all their points by default. To index by arbitrary points,
+    override self.points2obj.
+    """
 
 
     def __init__(self):
     def __init__(self):
         # Python RTree Index
         # Python RTree Index
@@ -3978,6 +3987,11 @@ class FlatCAMRTree(object):
 
 
 
 
 class FlatCAMRTreeStorage(FlatCAMRTree):
 class FlatCAMRTreeStorage(FlatCAMRTree):
+    """
+    Just like FlatCAMRTree it indexes geometry, but also serves
+    as storage for the geometry.
+    """
+
     def __init__(self):
     def __init__(self):
         super(FlatCAMRTreeStorage, self).__init__()
         super(FlatCAMRTreeStorage, self).__init__()