{"action":"created","issue":{"url":"https://api.github.com/repos/dcowden/cadquery/issues/71","labels_url":"https://api.github.com/repos/dcowden/cadquery/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/dcowden/cadquery/issues/71/comments","events_url":"https://api.github.com/repos/dcowden/cadquery/issues/71/events","html_url":"https://github.com/dcowden/cadquery/issues/71","id":56552753,"number":71,"title":"How to Union two elements at a specific position?","user":{"login":"tobltobs","id":1296747,"avatar_url":"https://avatars.githubusercontent.com/u/1296747?v=3","gravatar_id":"","url":"https://api.github.com/users/tobltobs","html_url":"https://github.com/tobltobs","followers_url":"https://api.github.com/users/tobltobs/followers","following_url":"https://api.github.com/users/tobltobs/following{/other_user}","gists_url":"https://api.github.com/users/tobltobs/gists{/gist_id}","starred_url":"https://api.github.com/users/tobltobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobltobs/subscriptions","organizations_url":"https://api.github.com/users/tobltobs/orgs","repos_url":"https://api.github.com/users/tobltobs/repos","events_url":"https://api.github.com/users/tobltobs/events{/privacy}","received_events_url":"https://api.github.com/users/tobltobs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-04T16:46:38Z","updated_at":"2015-02-04T18:38:28Z","closed_at":null,"body":"I try to place dots on a ground plate (think braille sign).\r\n```python\r\nimport cadquery as cq\r\nimport Part\r\n\r\ndef get_dot():\r\n        return cq.Workplane(\"XY\").threePointArc((0.4, 0.6), (0.0, 0.2)).close().revolve()\r\n\r\nr = cq.Workplane(\"XY\").box(10, 10, 0.5)\r\n\r\n#r = r.faces(\">Z\").workplane()\r\n#r = r.center(2,2)\r\n#r.pushPoints([(2,2), (1,1)])\r\n\r\nr = r.union(get_dot())\r\n\r\nPart.show(r.toFreecad())\r\n```\r\nThe outcommented lines shows different approaches I tried (pushPoint, center) . But the result was always a dot in the center of the box. Any idea what I am doing wrong or suggestions for a better approach to solve this problem."},"comment":{"url":"https://api.github.com/repos/dcowden/cadquery/issues/comments/72911838","html_url":"https://github.com/dcowden/cadquery/issues/71#issuecomment-72911838","issue_url":"https://api.github.com/repos/dcowden/cadquery/issues/71","id":72911838,"user":{"login":"dcowden","id":1297923,"avatar_url":"https://avatars.githubusercontent.com/u/1297923?v=3","gravatar_id":"","url":"https://api.github.com/users/dcowden","html_url":"https://github.com/dcowden","followers_url":"https://api.github.com/users/dcowden/followers","following_url":"https://api.github.com/users/dcowden/following{/other_user}","gists_url":"https://api.github.com/users/dcowden/gists{/gist_id}","starred_url":"https://api.github.com/users/dcowden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcowden/subscriptions","organizations_url":"https://api.github.com/users/dcowden/orgs","repos_url":"https://api.github.com/users/dcowden/repos","events_url":"https://api.github.com/users/dcowden/events{/privacy}","received_events_url":"https://api.github.com/users/dcowden/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T18:38:28Z","updated_at":"2015-02-04T18:38:28Z","body":"it doesnt work because doing   r.center(2,2) moves the center of THAT\nworkplane to (2,2), but NOT the center of the workplane you are creating in\nthe get_dot function.\n\nNo matter what your code outside of get_dot does, get_dot will always\nproduce a workplane that is centered at (0,0). That's because you're\ncreating a new one in that function with the Workplane(\"XY\") constructor.\n\n\n\nOn Wed, Feb 4, 2015 at 12:57 PM, tobltobs <notifications@github.com> wrote:\n\n> Ok, I will try your suggestions.\n>\n> But why does it not work if I move the center on the plate and than union.\n>\n> def get_dot():\n>         return cq.Workplane(\"XY\").threePointArc((0.4, 0.6), (0.0, 0.2)).close().revolve()\n>\n> r = cq.Workplane(\"XY\").box(10, 10, 0.5)\n> r.center(2,2)                                 # or is it r = r.center(2,2)?\n> r = r.union(get_dot())\n>\n> Part.show(r.toFreecad())\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/dcowden/cadquery/issues/71#issuecomment-72904227>.\n>\n"}}