Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Packing_Polygons_Pycharm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tolgayurt
Packing_Polygons_Pycharm
Commits
f323947e
Commit
f323947e
authored
4 years ago
by
tolgayurt
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://git.imp.fu-berlin.de/tolgayurt/packing_polygons_pycharm
parents
8372f37c
92ab0da3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+52
-0
52 additions, 0 deletions
README.md
with
52 additions
and
0 deletions
README.md
+
52
−
0
View file @
f323947e
# Packing_Polygons_Pycharm
Installation
-
Python 3.8 is required
Windows
1) download the repository
2) open terminal
3) navigate to the repository
4) venv
\S
cripts
\a
ctivate
5) pip install -r packing_polygons_pycharm
\m
ysite
\r
equirements
\b
ase.txt
---------------------------------------------------------------------------------
Linux
1) git clone https://git.imp.fu-berlin.de/tolgayurt/packing_polygons_pycharm.git
2) ./packing_polygons_pycharm/mysite/venv/Scripts/activate
3) pip install -r packing_polygons_pycharm/mysite/requirements/base.txt
4) python packing_polygons_pycharm/mysite/manage.py runserver
Start your browser to use the Server and navigate to the url http://127.0.0.1:8000/
---------------------------------------------------------------------------------
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
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 will be loaded to the storage
2.
2 With clear delete all loaded from storage
3.
Choose one of the packing variants to pack the stored polygons
-
axis-aligned rectangular container
-
best axis-aligned rectangular container from 0, 90, 180, 270 packed containers
-
recatngular container
----------------------------------------------------------------------------
Repository structure relevant files:
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 are in (packing_polygons_pycharm/mysite/plots/polygon_creator.py)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment