Skip to content

Commit aadbf81

Browse files
committed
more doc
1 parent b249b07 commit aadbf81

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,21 @@ import polygons
3737

3838
# polygon_points is a list of lists
3939
# the library has been developed to perform
40-
# with very many polygons
41-
# this is just an example
40+
# with very many polygons - this is just to have a simple example
4241
polygon_points = [
4342
[(0.0, 0.0), (1.0, 0.0), (1.0, 1.0), (0.0, 1.0), (0.0, 0.0)],
4443
[(0.0, 2.0), (1.0, 2.0), (1.0, 3.0), (0.0, 3.0), (0.0, 2.0)],
4544
]
4645

4746
# the more points you compute in one go, the better
47+
# this is just to make a simple example but if you have many points
48+
# then compute a thousand or a million in one go
49+
# so that the library can parallelize over the points
4850
points = [(0.5, 0.5), (0.5, -0.5)]
4951

50-
# parameters for the tree construction
52+
# parameters for the tree construction:
53+
# - each tree node has 4 children nodes
54+
# - each leaf collects 4 edges
5155
# you can try different parameters and check the timing
5256
# they (should) have no effect on the results apart from timing
5357
num_edges_children = 4

0 commit comments

Comments
 (0)