{"action":"created","issue":{"url":"https://api.github.com/repos/pointhi/kicad-footprint-generator/issues/144","repository_url":"https://api.github.com/repos/pointhi/kicad-footprint-generator","labels_url":"https://api.github.com/repos/pointhi/kicad-footprint-generator/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/pointhi/kicad-footprint-generator/issues/144/comments","events_url":"https://api.github.com/repos/pointhi/kicad-footprint-generator/issues/144/events","html_url":"https://github.com/pointhi/kicad-footprint-generator/pull/144","id":337317205,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NTM5NzQ0","number":144,"title":"Keep out script","user":{"login":"Misca1234","id":25547797,"node_id":"MDQ6VXNlcjI1NTQ3Nzk3","avatar_url":"https://avatars2.githubusercontent.com/u/25547797?v=4","gravatar_id":"","url":"https://api.github.com/users/Misca1234","html_url":"https://github.com/Misca1234","followers_url":"https://api.github.com/users/Misca1234/followers","following_url":"https://api.github.com/users/Misca1234/following{/other_user}","gists_url":"https://api.github.com/users/Misca1234/gists{/gist_id}","starred_url":"https://api.github.com/users/Misca1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Misca1234/subscriptions","organizations_url":"https://api.github.com/users/Misca1234/orgs","repos_url":"https://api.github.com/users/Misca1234/repos","events_url":"https://api.github.com/users/Misca1234/events{/privacy}","received_events_url":"https://api.github.com/users/Misca1234/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-01T19:53:07Z","updated_at":"2018-08-02T15:34:12Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/pointhi/kicad-footprint-generator/pulls/144","html_url":"https://github.com/pointhi/kicad-footprint-generator/pull/144","diff_url":"https://github.com/pointhi/kicad-footprint-generator/pull/144.diff","patch_url":"https://github.com/pointhi/kicad-footprint-generator/pull/144.patch"},"body":"Here is a script that create a \"keep out area\" based on arbitrarily closed polygon\r\n\r\n\r\n\t#\r\n    # 1\r\n\tf.append(KeepOutArea(nodes=[[0, 0], [4, 0], [4, 4], [0, 4], [-2, 2]], width=0.4))\r\n    #\r\n    # 2\r\n\tf.append(KeepOutArea(nodes=[[10, 10], [14, 10], [14, 14], [10, 14]], width=0.01))\r\n\t#\r\n    # 3\r\n\tf.append(KeepOutArea(nodes=[[20, 20], [24, 20], [24, 24], [22, 26], [20, 24]], layer=\"Cmts.User\"))\r\n    #\r\n    # 4\r\n\tf.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]]))\r\n    #\r\n    # 5\r\n\tf.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]]))\r\n    #\r\n    # 6\r\n\tf.append(KeepOutArea(nodes=[[35,5], [37,3], [39,3], [45,10], [38,15], [37,12], [41,8], [36,5]]))\r\n\r\n![bild](https://user-images.githubusercontent.com/25547797/41817832-06696f08-77a3-11e8-964a-620c07038d06.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pointhi/kicad-footprint-generator/issues/comments/409969315","html_url":"https://github.com/pointhi/kicad-footprint-generator/pull/144#issuecomment-409969315","issue_url":"https://api.github.com/repos/pointhi/kicad-footprint-generator/issues/144","id":409969315,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTk2OTMxNQ==","user":{"login":"pointhi","id":1652144,"node_id":"MDQ6VXNlcjE2NTIxNDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1652144?v=4","gravatar_id":"","url":"https://api.github.com/users/pointhi","html_url":"https://github.com/pointhi","followers_url":"https://api.github.com/users/pointhi/followers","following_url":"https://api.github.com/users/pointhi/following{/other_user}","gists_url":"https://api.github.com/users/pointhi/gists{/gist_id}","starred_url":"https://api.github.com/users/pointhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pointhi/subscriptions","organizations_url":"https://api.github.com/users/pointhi/orgs","repos_url":"https://api.github.com/users/pointhi/repos","events_url":"https://api.github.com/users/pointhi/events{/privacy}","received_events_url":"https://api.github.com/users/pointhi/received_events","type":"User","site_admin":false},"created_at":"2018-08-02T15:34:12Z","updated_at":"2018-08-02T15:34:12Z","author_association":"OWNER","body":"Please use https://github.com/pointhi/kicad-footprint-generator/blob/master/KicadModTree/PolygonPoints.py#L23 for the line as it is used in other nodes as well"}}
{"actor":{"display_login":"pointhi"}}