From 6e1bd1867f2716546b11460ec4d5a6e9ddb8c675 Mon Sep 17 00:00:00 2001 From: tolgayurt <tolgayurt@mi.fu-berlin.de> Date: Fri, 29 Jan 2021 16:58:52 +0000 Subject: [PATCH] Update README.md --- README.md | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 31181310..07841bf6 100644 --- a/README.md +++ b/README.md @@ -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 -- GitLab