{"action":"created","issue":{"url":"https://api.github.com/repos/Sverchok/SverchokRedux/issues/4","labels_url":"https://api.github.com/repos/Sverchok/SverchokRedux/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Sverchok/SverchokRedux/issues/4/comments","events_url":"https://api.github.com/repos/Sverchok/SverchokRedux/issues/4/events","html_url":"https://github.com/Sverchok/SverchokRedux/issues/4","id":89085489,"number":4,"title":"Stream Objects","user":{"login":"zeffii","id":619340,"avatar_url":"https://avatars.githubusercontent.com/u/619340?v=3","gravatar_id":"","url":"https://api.github.com/users/zeffii","html_url":"https://github.com/zeffii","followers_url":"https://api.github.com/users/zeffii/followers","following_url":"https://api.github.com/users/zeffii/following{/other_user}","gists_url":"https://api.github.com/users/zeffii/gists{/gist_id}","starred_url":"https://api.github.com/users/zeffii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeffii/subscriptions","organizations_url":"https://api.github.com/users/zeffii/orgs","repos_url":"https://api.github.com/users/zeffii/repos","events_url":"https://api.github.com/users/zeffii/events{/privacy}","received_events_url":"https://api.github.com/users/zeffii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-17T18:06:44Z","updated_at":"2015-06-18T12:36:50Z","closed_at":null,"body":"I propose a testing Stream Object, we got to start somewhere and I have a suspicion that a composite object of numpy structures could be interesting.\r\n\r\n```python\r\nclass np_Mesh():\r\n    def __init__(self, py_data):\r\n\r\n        v, e, f = py_data\r\n        \r\n        self.v = None\r\n        self.e = None\r\n        self.f = None\r\n        self.f_lookup = None\r\n\r\n        if v:\r\n            self.v = np.array(v, np.float32)\r\n\r\n        if e:\r\n            self.e = np.array(e, np.float32)\r\n\r\n        if f:\r\n            flat, idx_lookup = self.processed(f)\r\n            self.f = np.array(flat, np.int32)\r\n            self.f_lookup = np.array(idx_lookup, np.int32)\r\n\r\n    def processed(self, f):\r\n         flat = # flat list of polygon indices (unfolded)\r\n\r\n         # allowing ngons to be represented by homogenous lists\r\n         idx_lookup = [[begin, end], [begin, end],....]\r\n         return flat, idx_lookup\r\n\r\n    @property\r\n    def verts(self):\r\n         return self.v  \r\n\r\n    @property\r\n    def edges(self):\r\n         return self.e\r\n\r\n    @property\r\n    def faces(self):\r\n         return self.f, self.f_lookup\r\n\r\n    def face_walker(self, generator_func=True) :\r\n         # recomposed non homogenous index lists.\r\n         if generator_func:\r\n             return a lazy\r\n         else:\r\n             return a proper list.\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Sverchok/SverchokRedux/issues/comments/113141090","html_url":"https://github.com/Sverchok/SverchokRedux/issues/4#issuecomment-113141090","issue_url":"https://api.github.com/repos/Sverchok/SverchokRedux/issues/4","id":113141090,"user":{"login":"zeffii","id":619340,"avatar_url":"https://avatars.githubusercontent.com/u/619340?v=3","gravatar_id":"","url":"https://api.github.com/users/zeffii","html_url":"https://github.com/zeffii","followers_url":"https://api.github.com/users/zeffii/followers","following_url":"https://api.github.com/users/zeffii/following{/other_user}","gists_url":"https://api.github.com/users/zeffii/gists{/gist_id}","starred_url":"https://api.github.com/users/zeffii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeffii/subscriptions","organizations_url":"https://api.github.com/users/zeffii/orgs","repos_url":"https://api.github.com/users/zeffii/repos","events_url":"https://api.github.com/users/zeffii/events{/privacy}","received_events_url":"https://api.github.com/users/zeffii/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T12:36:50Z","updated_at":"2015-06-18T12:36:50Z","body":"interesting.  warning , don't use `any` as a variable name... and  store vertices as `float32` not `int32`"}}