{"action":"opened","issue":{"url":"https://api.github.com/repos/compas-dev/compas/issues/202","repository_url":"https://api.github.com/repos/compas-dev/compas","labels_url":"https://api.github.com/repos/compas-dev/compas/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/compas-dev/compas/issues/202/comments","events_url":"https://api.github.com/repos/compas-dev/compas/issues/202/events","html_url":"https://github.com/compas-dev/compas/issues/202","id":381531370,"node_id":"MDU6SXNzdWUzODE1MzEzNzA=","number":202,"title":"center_of_mass_polyhedron","user":{"login":"anjalimehrotra","id":44698911,"node_id":"MDQ6VXNlcjQ0Njk4OTEx","avatar_url":"https://avatars2.githubusercontent.com/u/44698911?v=4","gravatar_id":"","url":"https://api.github.com/users/anjalimehrotra","html_url":"https://github.com/anjalimehrotra","followers_url":"https://api.github.com/users/anjalimehrotra/followers","following_url":"https://api.github.com/users/anjalimehrotra/following{/other_user}","gists_url":"https://api.github.com/users/anjalimehrotra/gists{/gist_id}","starred_url":"https://api.github.com/users/anjalimehrotra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anjalimehrotra/subscriptions","organizations_url":"https://api.github.com/users/anjalimehrotra/orgs","repos_url":"https://api.github.com/users/anjalimehrotra/repos","events_url":"https://api.github.com/users/anjalimehrotra/events{/privacy}","received_events_url":"https://api.github.com/users/anjalimehrotra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-16T10:07:37Z","updated_at":"2018-11-16T10:07:37Z","closed_at":null,"author_association":"NONE","body":"center_of_mass_polyhedron gives incorrect answers when applied to simple geometries.\r\n\r\nFor a polyhedron with vertices given by m1v and faces given by m1f:\r\nm1v = ([[1.0, 1.0, 2.0],\r\n  [0.0, 0.0, 0.0],\r\n  [1.0, 0.0, 2.0],\r\n  [1.0, 0.0, 0.0],\r\n  [0.0, 1.0, 0.0],\r\n  [1.0, 1.0, 0.0],\r\n  [0.0, 1.0, 1.0],\r\n  [0.0, 0.0, 1.0]])\r\n\r\nm1f = ([[4, 6, 7, 1],\r\n [5, 0, 6, 4],\r\n [4, 1, 3, 5],\r\n [3, 2, 0, 5],\r\n [1, 7, 2, 3],\r\n [6, 0, 2, 7]])\r\n\r\ncenter_of_mass_polyhedron((m1v,m1f))\r\nOutput: (-0.833, -0.75, -1.167)\r\n\r\nActual answer: (0.556, 0.5, 0.778)"}}
{"actor":{"display_login":"anjalimehrotra"}}