{"action":"created","issue":{"url":"https://api.github.com/repos/openscad/openscad/issues/1351","labels_url":"https://api.github.com/repos/openscad/openscad/issues/1351/labels{/name}","comments_url":"https://api.github.com/repos/openscad/openscad/issues/1351/comments","events_url":"https://api.github.com/repos/openscad/openscad/issues/1351/events","html_url":"https://github.com/openscad/openscad/pull/1351","id":79403816,"number":1351,"title":"Add ray casting on model from command line","user":{"login":"emogenet","id":387781,"avatar_url":"https://avatars.githubusercontent.com/u/387781?v=3","gravatar_id":"","url":"https://api.github.com/users/emogenet","html_url":"https://github.com/emogenet","followers_url":"https://api.github.com/users/emogenet/followers","following_url":"https://api.github.com/users/emogenet/following{/other_user}","gists_url":"https://api.github.com/users/emogenet/gists{/gist_id}","starred_url":"https://api.github.com/users/emogenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emogenet/subscriptions","organizations_url":"https://api.github.com/users/emogenet/orgs","repos_url":"https://api.github.com/users/emogenet/repos","events_url":"https://api.github.com/users/emogenet/events{/privacy}","received_events_url":"https://api.github.com/users/emogenet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-22T10:50:20Z","updated_at":"2015-05-22T11:08:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openscad/openscad/pulls/1351","html_url":"https://github.com/openscad/openscad/pull/1351","diff_url":"https://github.com/openscad/openscad/pull/1351.diff","patch_url":"https://github.com/openscad/openscad/pull/1351.patch"},"body":"\r\nThis adds a new command line option that casts one ray on the model and\r\noutputs the result on stdout as:\r\n\r\n<triangleId> <distance from ray origin> <intersection point> <normal at intersection point>\r\n\r\nThis is useful for doing after the fact measurements of the model.\r\n\r\nIt is also very useful to implement regression testing on complex parametric models.\r\n"},"comment":{"url":"https://api.github.com/repos/openscad/openscad/issues/comments/104622230","html_url":"https://github.com/openscad/openscad/pull/1351#issuecomment-104622230","issue_url":"https://api.github.com/repos/openscad/openscad/issues/1351","id":104622230,"user":{"login":"emogenet","id":387781,"avatar_url":"https://avatars.githubusercontent.com/u/387781?v=3","gravatar_id":"","url":"https://api.github.com/users/emogenet","html_url":"https://github.com/emogenet","followers_url":"https://api.github.com/users/emogenet/followers","following_url":"https://api.github.com/users/emogenet/following{/other_user}","gists_url":"https://api.github.com/users/emogenet/gists{/gist_id}","starred_url":"https://api.github.com/users/emogenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emogenet/subscriptions","organizations_url":"https://api.github.com/users/emogenet/orgs","repos_url":"https://api.github.com/users/emogenet/repos","events_url":"https://api.github.com/users/emogenet/events{/privacy}","received_events_url":"https://api.github.com/users/emogenet/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T11:08:34Z","updated_at":"2015-05-22T11:08:34Z","body":"Example use:\r\n\r\n./openscad --raycast=0,0,0,1,1,1 examples/Basics/CSG.scad \r\nECHO: version = [2015, 5, 22]\r\nCGAL Cache insert: union(){cube(size=[15,15,15],center=true (1142976 bytes)\r\nCGAL Cache insert: difference(){cube(size=[15,15,15],center (700656 bytes)\r\nCGAL Cache insert: multmatrix([[1,0,0,-24],[0,1,0,0],[0,0,1 (1142976 bytes)\r\nCGAL Cache insert: intersection(){cube(size=[15,15,15],cent (690640 bytes)\r\nCGAL Cache insert: multmatrix([[1,0,0,24],[0,1,0,0],[0,0,1, (700656 bytes)\r\nCGAL Cache insert: group(){multmatrix([[1,0,0,-24],[0,1,0,0 (2534096 bytes)\r\n0 1574 9.95813967898173224569 5.74933462428799568755 5.74933462428799568755 5.74933462428799568755 0.64446303864007825624 0.58027736788500949849 0.49794133002517720898\r\n"}}