{"action":"created","issue":{"url":"https://api.github.com/repos/libigl/libigl/issues/372","repository_url":"https://api.github.com/repos/libigl/libigl","labels_url":"https://api.github.com/repos/libigl/libigl/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/libigl/libigl/issues/372/comments","events_url":"https://api.github.com/repos/libigl/libigl/issues/372/events","html_url":"https://github.com/libigl/libigl/issues/372","id":184618929,"number":372,"title":"error when running example 604 triangle in MSVC 2013","user":{"login":"saedrna","id":3850191,"avatar_url":"https://avatars.githubusercontent.com/u/3850191?v=3","gravatar_id":"","url":"https://api.github.com/users/saedrna","html_url":"https://github.com/saedrna","followers_url":"https://api.github.com/users/saedrna/followers","following_url":"https://api.github.com/users/saedrna/following{/other_user}","gists_url":"https://api.github.com/users/saedrna/gists{/gist_id}","starred_url":"https://api.github.com/users/saedrna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saedrna/subscriptions","organizations_url":"https://api.github.com/users/saedrna/orgs","repos_url":"https://api.github.com/users/saedrna/repos","events_url":"https://api.github.com/users/saedrna/events{/privacy}","received_events_url":"https://api.github.com/users/saedrna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-22T08:56:12Z","updated_at":"2016-10-26T02:48:29Z","closed_at":null,"body":"Hi,\r\n\r\nIt seems that the vertexloop is not alloc as the following, in triangle.c of ```transfernodes```\r\n```\r\n initializevertexpool(m, b);\r\n\r\n  /* Read the vertices. */\r\n  coordindex = 0;\r\n  attribindex = 0;\r\n  for (i = 0; i < m->invertices; i++) {\r\n    vertexloop = (vertex) poolalloc(&m->vertices);\r\n    /* Read the vertex coordinates. */\r\n    x = vertexloop[0] = pointlist[coordindex++];\r\n    y = vertexloop[1] = pointlist[coordindex++];\r\n...\r\n```\r\n\r\nAny thoughts on how to use the ```triangulate``` function? \r\n\r\nPS: I have tried msvc 12.0 x86 and it's OK. But msvc x64 will have this alloc problem. Also it works on linux (mint x64) with gcc and clang,\r\n\r\nThanks,\r\n\r\nHan"},"comment":{"url":"https://api.github.com/repos/libigl/libigl/issues/comments/256235818","html_url":"https://github.com/libigl/libigl/issues/372#issuecomment-256235818","issue_url":"https://api.github.com/repos/libigl/libigl/issues/372","id":256235818,"user":{"login":"saedrna","id":3850191,"avatar_url":"https://avatars.githubusercontent.com/u/3850191?v=3","gravatar_id":"","url":"https://api.github.com/users/saedrna","html_url":"https://github.com/saedrna","followers_url":"https://api.github.com/users/saedrna/followers","following_url":"https://api.github.com/users/saedrna/following{/other_user}","gists_url":"https://api.github.com/users/saedrna/gists{/gist_id}","starred_url":"https://api.github.com/users/saedrna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saedrna/subscriptions","organizations_url":"https://api.github.com/users/saedrna/orgs","repos_url":"https://api.github.com/users/saedrna/repos","events_url":"https://api.github.com/users/saedrna/events{/privacy}","received_events_url":"https://api.github.com/users/saedrna/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T02:48:29Z","updated_at":"2016-10-26T02:48:29Z","body":"The problem lies in the c library of triangle.c. \r\n\r\nI also don't know how this is happening, because use the same compile processor definition msvc 32 bit will work well and linux gcc will also work well.\r\n\r\nOn the other hand, it also seems to be not the probelm of msvc x64, because I have solved the problem by using the wrapper provided by [https://github.com/wo80/Triangle](https://github.com/wo80/Triangle)."}}
{"actor":{"display_login":"saedrna"}}