Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Adding a script for handling keep out areas in polygon form #242

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Misca1234
Copy link
Contributor

Repush of
#144

Could no longer access the branch locally

Here is a script that create a "keep out area" based on arbitrarily closed polygon

#
# 1
f.append(KeepOutArea(nodes=[[0, 0], [4, 0], [4, 4], [0, 4], [-2, 2]], width=0.4))
#
# 2
f.append(KeepOutArea(nodes=[[10, 10], [14, 10], [14, 14], [10, 14]], width=0.01))
#
# 3
f.append(KeepOutArea(nodes=[[20, 20], [24, 20], [24, 24], [22, 26], [20, 24]], layer="Cmts.User"))
#
# 4
f.append(KeepOutArea(nodes=[[-25,-30], [5,-30], [5,-10], [0,-10], [0,-15], [-5,-15], [-5,-20], [-15,-20], [-15,-15], [-20,-15], [-20,-10], [-25,-10]]))
#
# 5
f.append(KeepOutArea(nodes=[[15,-30], [20,-30], [20,-25], [25,-25], [25,-20], [30,-20], [35,-20], [35,-25], [40,-25], [40,-30], [45,-30], [45, -10], [15, -10]]))
#
# 6
f.append(KeepOutArea(nodes=[[35,5], [37,3], [39,3], [45,10], [38,15], [37,12], [41,8], [36,5]]))

bild

@codeclimate
Copy link

codeclimate bot commented Dec 15, 2018

Code Climate has analyzed commit 0887678 and detected 11 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 4
Duplication 7

View more on Code Climate.

@Misca1234 Misca1234 mentioned this pull request Dec 15, 2018
@Misca1234
Copy link
Contributor Author

ping

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant