Skip to content
Snippets Groups Projects
Commit 6e1bd186 authored by tolgayurt's avatar tolgayurt
Browse files

Update README.md

parent d9472cea
No related branches found
No related tags found
No related merge requests found
......@@ -39,31 +39,29 @@ Start your browser to use the Server and navigate to the url http://127.0.0.1:80
---------------------------------------------------------------------------------
Working Concept.
1. Create Data for the drawtool,
draw or edit polygons with the buttons in top right legend
- in the PolyDrawTool tab on (https://docs.bokeh.org/en/latest/docs/user_guide/tools.html#edit-tools) is animated guide
- in the PolyEditTool tab on the same site are explination for adding or deleting vertices
- in some browser the delete button is not working for the draw tool because the website is accepting the input, you need to turn it off
- to delete vertices
1.2 With the polygon creator button
1.3 Or write your Polygons into the polygon.txt file, path: packing_polygons_pycharm/mysite/plots/polygon.txt,
an example how to write the polygons to polygons.txt file is already included
every line is representing one polygon
1. Create Data for the drawtool
1.1 draw or edit polygons with the buttons in top right legend
- in the PolyDrawTool tab on (https://docs.bokeh.org/en/latest/docs/user_guide/tools.html#edit-tools) is animated guide
- in the PolyEditTool tab on the same site are explination for adding or deleting vertices
- in some browser the delete button is not working for the draw tool because the website is accepting the input, you need to turn it off
- to delete vertices
1.2 Below the Drawtool is also an polygon creator button which can create polygons.
1.3 Or write your Polygons into the polygon.txt file, path: packing_polygons_pycharm/mysite/plots/polygon.txt,an example how to write the polygons to polygons.txt file is already included every line is representing one polygon
2. The polygons which got created need to be loaded into the storage
2.1 With the button load all polygon which are visible in the drawtool they will be loaded into the storage
2.2 With the clear button all loaded polygons will be deleted from storage
2. The polygons which got created need to be loaded into the storage
2.1 With the button load all polygon which are visible in the drawtool they will be loaded into the storage
2.2 With the clear button all loaded polygons will be deleted from storage
3. Choose one of the packing variants to pack the stored polygons
- axis-aligned rectangular container
- axis-aligned rectangular container (without rotation optimization)
- axis-aligned rectangular container with 0, 90, 180, 270 rotation optimization
- rectangular container
- rectangular container ("convex container")
----------------------------------------------------------------------------
Repository structure relevant files:
**These files are relevant and including the main logic:**
-The implemented polygon aglortihm is in the file packing_algo.py (mysite/plots/packing_algo.py)
-The AVLTree structure is in the avl_tree.py (packing_polygons_pycharm/mysite/plots/avl_tree.py)
-The data_creator algorithm for cutting a rectangle into convex polygons are in (packing_polygons_pycharm/mysite/plots/polygon_creator.py)
-The analyze data are in the path (packing_polygons_pycharm/mysite/result_of_the_analyzes)
-The implemented polygon aglortihm is in the file packing_algo.py (mysite/plots/packing_algo.py)
-The AVLTree structure is in the avl_tree.py (packing_polygons_pycharm/mysite/plots/avl_tree.py)
-The data_creator algorithm for cutting a rectangle into convex polygons are in (packing_polygons_pycharm/mysite/plots/polygon_creator.py)
-The analyze data are in resul_of_the_analyzes
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment