{"action":"created","issue":{"url":"https://api.github.com/repos/ufz/ogs/issues/585","labels_url":"https://api.github.com/repos/ufz/ogs/issues/585/labels{/name}","comments_url":"https://api.github.com/repos/ufz/ogs/issues/585/comments","events_url":"https://api.github.com/repos/ufz/ogs/issues/585/events","html_url":"https://github.com/ufz/ogs/pull/585","id":56639879,"number":585,"title":"Small util to reset properties in polygonal region.","user":{"login":"TomFischer","id":800065,"avatar_url":"https://avatars.githubusercontent.com/u/800065?v=3","gravatar_id":"","url":"https://api.github.com/users/TomFischer","html_url":"https://github.com/TomFischer","followers_url":"https://api.github.com/users/TomFischer/followers","following_url":"https://api.github.com/users/TomFischer/following{/other_user}","gists_url":"https://api.github.com/users/TomFischer/gists{/gist_id}","starred_url":"https://api.github.com/users/TomFischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomFischer/subscriptions","organizations_url":"https://api.github.com/users/TomFischer/orgs","repos_url":"https://api.github.com/users/TomFischer/repos","events_url":"https://api.github.com/users/TomFischer/events{/privacy}","received_events_url":"https://api.github.com/users/TomFischer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ufz/ogs/labels/WIP","name":"WIP","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-05T08:15:14Z","updated_at":"2015-02-20T13:55:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ufz/ogs/pulls/585","html_url":"https://github.com/ufz/ogs/pull/585","diff_url":"https://github.com/ufz/ogs/pull/585.diff","patch_url":"https://github.com/ufz/ogs/pull/585.patch"},"body":"In this PR a small util is implemented that sets the material property id of an mesh element to a given new id iff all nodes of the element are within a polygonal region given by a polygon read from a gml file."},"comment":{"url":"https://api.github.com/repos/ufz/ogs/issues/comments/75241044","html_url":"https://github.com/ufz/ogs/pull/585#issuecomment-75241044","issue_url":"https://api.github.com/repos/ufz/ogs/issues/585","id":75241044,"user":{"login":"TomFischer","id":800065,"avatar_url":"https://avatars.githubusercontent.com/u/800065?v=3","gravatar_id":"","url":"https://api.github.com/users/TomFischer","html_url":"https://github.com/TomFischer","followers_url":"https://api.github.com/users/TomFischer/followers","following_url":"https://api.github.com/users/TomFischer/following{/other_user}","gists_url":"https://api.github.com/users/TomFischer/gists{/gist_id}","starred_url":"https://api.github.com/users/TomFischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomFischer/subscriptions","organizations_url":"https://api.github.com/users/TomFischer/orgs","repos_url":"https://api.github.com/users/TomFischer/repos","events_url":"https://api.github.com/users/TomFischer/events{/privacy}","received_events_url":"https://api.github.com/users/TomFischer/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T13:55:59Z","updated_at":"2015-02-20T13:55:59Z","body":"@rinkk wrote:\r\n> you rotate the polygon but not the mesh ... \r\n\r\nThe mesh is rotated in function ```makeNodesOutsideOfPolygon()``` in the same way the polygon is rotated.\r\n\r\n> also, you flatten the polyline to z=0 which is again a special case .... i guess this only works with flat meshes where z=0 for all nodes? please note this somewhere ...\r\n\r\nThe algorithm marks alls element that have at least one node in the cylindrical volume defined by the polygon. It is not restricted to \"flat\" meshes.\r\n\r\nI hope I fixed all your issues."}}