{"action":"created","issue":{"url":"https://api.github.com/repos/openscad/openscad/issues/501","labels_url":"https://api.github.com/repos/openscad/openscad/issues/501/labels{/name}","comments_url":"https://api.github.com/repos/openscad/openscad/issues/501/comments","events_url":"https://api.github.com/repos/openscad/openscad/issues/501/events","html_url":"https://github.com/openscad/openscad/issues/501","id":20782921,"number":501,"title":"Difference applies color of removed object to interface","user":{"login":"retospect","id":430279,"avatar_url":"https://avatars.githubusercontent.com/u/430279?v=3","gravatar_id":"","url":"https://api.github.com/users/retospect","html_url":"https://github.com/retospect","followers_url":"https://api.github.com/users/retospect/followers","following_url":"https://api.github.com/users/retospect/following{/other_user}","gists_url":"https://api.github.com/users/retospect/gists{/gist_id}","starred_url":"https://api.github.com/users/retospect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retospect/subscriptions","organizations_url":"https://api.github.com/users/retospect/orgs","repos_url":"https://api.github.com/users/retospect/repos","events_url":"https://api.github.com/users/retospect/events{/privacy}","received_events_url":"https://api.github.com/users/retospect/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openscad/openscad/labels/OpenCSG","name":"OpenCSG","color":"e102d8"},{"url":"https://api.github.com/repos/openscad/openscad/labels/Rendering","name":"Rendering","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2013-10-10T01:40:15Z","updated_at":"2015-01-16T19:01:48Z","closed_at":null,"body":"difference() {\r\n  union() {\r\n    translate([0,0,1]) color(\"green\") cube([1,1,1]);\r\n    color(\"red\") cube([1,1,1]);\r\n  };\r\n  translate([-.5, -.5, -.5]) color(\"pink\") cube([2,1,3]);\r\n}\r\n\r\nFrom two cubes of different color, a third, pink cube is removed. \r\nThe exposed interface is pink (the color of the invisible object that was used to cut), instead of the color of the cubes that were there originally\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/1012752-difference-applies-color-of-removed-object-to-interface?utm_campaign=plugin&utm_content=tracker%2F52063&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F52063&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/openscad/openscad/issues/comments/70303998","html_url":"https://github.com/openscad/openscad/issues/501#issuecomment-70303998","issue_url":"https://api.github.com/repos/openscad/openscad/issues/501","id":70303998,"user":{"login":"jonathanimb","id":8062300,"avatar_url":"https://avatars.githubusercontent.com/u/8062300?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanimb","html_url":"https://github.com/jonathanimb","followers_url":"https://api.github.com/users/jonathanimb/followers","following_url":"https://api.github.com/users/jonathanimb/following{/other_user}","gists_url":"https://api.github.com/users/jonathanimb/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanimb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanimb/subscriptions","organizations_url":"https://api.github.com/users/jonathanimb/orgs","repos_url":"https://api.github.com/users/jonathanimb/repos","events_url":"https://api.github.com/users/jonathanimb/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanimb/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T19:01:48Z","updated_at":"2015-01-16T19:01:48Z","body":"Workaround for some instances: make the cut transparent. \r\n\r\n\tdifference()\r\n\t{\r\n\t\tstack();\r\n\t\tcolor(\"Blue\", 0) //0 is fully transparent\r\n\t\tcube([8,8,8], true);\r\n\t}\r\n\r\n![stack_384px](https://cloud.githubusercontent.com/assets/8062300/5782322/b93016ac-9d7f-11e4-8827-5a74f0912884.png)\r\n"}}