{"action":"created","issue":{"url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1013","repository_url":"https://api.github.com/repos/opensim-org/opensim-core","labels_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1013/labels{/name}","comments_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1013/comments","events_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1013/events","html_url":"https://github.com/opensim-org/opensim-core/issues/1013","id":160553628,"number":1013,"title":"Change return type from void to self& to allow cascading method calls","user":{"login":"tkuchida","id":4203505,"avatar_url":"https://avatars.githubusercontent.com/u/4203505?v=3","gravatar_id":"","url":"https://api.github.com/users/tkuchida","html_url":"https://github.com/tkuchida","followers_url":"https://api.github.com/users/tkuchida/followers","following_url":"https://api.github.com/users/tkuchida/following{/other_user}","gists_url":"https://api.github.com/users/tkuchida/gists{/gist_id}","starred_url":"https://api.github.com/users/tkuchida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkuchida/subscriptions","organizations_url":"https://api.github.com/users/tkuchida/orgs","repos_url":"https://api.github.com/users/tkuchida/repos","events_url":"https://api.github.com/users/tkuchida/events{/privacy}","received_events_url":"https://api.github.com/users/tkuchida/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-16T00:30:28Z","updated_at":"2016-06-16T01:00:32Z","closed_at":null,"body":"Here's an example from the DecorativeGeometry class in Simbody (from [here](https://github.com/simbody/simbody/blob/master/SimTKcommon/Geometry/include/SimTKcommon/internal/DecorativeGeometry.h#L211)):\r\n```cpp\r\nDecorativeGeometry& setColor(const Vec3& rgb);\r\n```\r\nwhich allows code like this (from [here](https://github.com/simbody/simbody/blob/master/Simbody/tests/adhoc/GeometryPlayground.cpp#L128)):\r\n```cpp\r\nDecorations dec; dec.setColor(color).setLineThickness(2);\r\n```\r\nThis feature might be nice for methods like `Model::addBody()` and `Model::addJoint()`, turning this\r\n```cpp\r\nmyModel.addBody(pelvis);\r\nmyModel.addBody(thigh);\r\nmyModel.addJoint(hip);\r\n```\r\ninto this\r\n```cpp\r\nmyModel.addBody(pelvis).addBody(thigh).addJoint(hip);\r\n```"},"comment":{"url":"https://api.github.com/repos/opensim-org/opensim-core/issues/comments/226362138","html_url":"https://github.com/opensim-org/opensim-core/issues/1013#issuecomment-226362138","issue_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1013","id":226362138,"user":{"login":"tkuchida","id":4203505,"avatar_url":"https://avatars.githubusercontent.com/u/4203505?v=3","gravatar_id":"","url":"https://api.github.com/users/tkuchida","html_url":"https://github.com/tkuchida","followers_url":"https://api.github.com/users/tkuchida/followers","following_url":"https://api.github.com/users/tkuchida/following{/other_user}","gists_url":"https://api.github.com/users/tkuchida/gists{/gist_id}","starred_url":"https://api.github.com/users/tkuchida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkuchida/subscriptions","organizations_url":"https://api.github.com/users/tkuchida/orgs","repos_url":"https://api.github.com/users/tkuchida/repos","events_url":"https://api.github.com/users/tkuchida/events{/privacy}","received_events_url":"https://api.github.com/users/tkuchida/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T01:00:32Z","updated_at":"2016-06-16T01:00:32Z","body":"Good point @aymanhab about limiting to operations that are commutative."}}
{"actor":{"display_login":"tkuchida"}}