{"action":"created","issue":{"url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/7","labels_url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/7/comments","events_url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/7/events","html_url":"https://github.com/marekr/kicad-issue-test/issues/7","id":120692378,"number":7,"title":"DRC does not test clearance between segments/vias of the same net","user":{"login":"marekr","id":1838013,"avatar_url":"https://avatars.githubusercontent.com/u/1838013?v=3","gravatar_id":"","url":"https://api.github.com/users/marekr","html_url":"https://github.com/marekr","followers_url":"https://api.github.com/users/marekr/followers","following_url":"https://api.github.com/users/marekr/following{/other_user}","gists_url":"https://api.github.com/users/marekr/gists{/gist_id}","starred_url":"https://api.github.com/users/marekr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marekr/subscriptions","organizations_url":"https://api.github.com/users/marekr/orgs","repos_url":"https://api.github.com/users/marekr/repos","events_url":"https://api.github.com/users/marekr/events{/privacy}","received_events_url":"https://api.github.com/users/marekr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marekr/kicad-issue-test/labels/clearance","name":"clearance","color":"ededed"},{"url":"https://api.github.com/repos/marekr/kicad-issue-test/labels/drc","name":"drc","color":"ededed"},{"url":"https://api.github.com/repos/marekr/kicad-issue-test/labels/In%20Progress","name":"In Progress","color":"ddffdd"},{"url":"https://api.github.com/repos/marekr/kicad-issue-test/labels/Medium","name":"Medium","color":"ffdddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-07T03:44:07Z","updated_at":"2015-12-07T06:49:11Z","closed_at":null,"body":"While routing a track, I found it was possible to place two consecutive vias under the required clearance.\n\nAt first, I thought this was a via to via issue, but this is not so, because if the vias do not belong to the same net, it is impossible to place them under the said clearance.\n\nThe same is true for track segments: you can create a track that passes by itself very closely (as in a coil loop), without triggering DRC errors.\n\nAttached is a simple board illustrating what I think should trigger at least 3 DRC errors, even if it's the same net:\n\n- Via to Via\n- Via to segment\n- segment to segment\n\nAll of this is due to these lines, saying basically that no DRC errors can be triggered by same net objects:\n\ndrc_clearance_test_functions.cpp L345\n\n        // No problem if segments have the same net code:\n        if( net_code_ref == track->GetNet() )\n            continue;\n\nI understand that these lines alleviate the need for testing connectivity at the same time as DRC (two segments physically linked together do not violate DRC, but I think two segments of the same net, when linked physically through a third segment, should be tested for DRC).\n\nIn other words, the fact that two segments/vias share the same net does not guaranty this cannot lead to fabrication problems.\n\nGuillaume\n\n\nApplication: Pcbnew\nVersion: (2011-12-16 BZR 3308)-testing\nBuild: wxWidgets 2.8.11 (no debug,Unicode,compiler with C++ ABI 1002,GCC 4.4.4,wx containers,compatible with 2.4,compatible with 2.6)\nPlatform: Linux 2.6.32-131.12.1.el6.x86_64 x86_64, 64 bit, Little endian, wxGTK\nOptions: USE_PNG_BITMAPS=ON\n         KICAD_GOST=OFF\n         USE_WX_GRAPHICS_CONTEXT=OFF\n         USE_WX_OVERLAY=OFF\n         USE_BOOST_POLYGON_LIBRARY"},"comment":{"url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/comments/162427767","html_url":"https://github.com/marekr/kicad-issue-test/issues/7#issuecomment-162427767","issue_url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/7","id":162427767,"user":{"login":"marekr","id":1838013,"avatar_url":"https://avatars.githubusercontent.com/u/1838013?v=3","gravatar_id":"","url":"https://api.github.com/users/marekr","html_url":"https://github.com/marekr","followers_url":"https://api.github.com/users/marekr/followers","following_url":"https://api.github.com/users/marekr/following{/other_user}","gists_url":"https://api.github.com/users/marekr/gists{/gist_id}","starred_url":"https://api.github.com/users/marekr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marekr/subscriptions","organizations_url":"https://api.github.com/users/marekr/orgs","repos_url":"https://api.github.com/users/marekr/repos","events_url":"https://api.github.com/users/marekr/events{/privacy}","received_events_url":"https://api.github.com/users/marekr/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T06:49:11Z","updated_at":"2015-12-07T06:49:11Z","body":"(by gsimard)\n"}}