{"action":"created","issue":{"url":"https://api.github.com/repos/libigl/libigl/issues/71","labels_url":"https://api.github.com/repos/libigl/libigl/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/libigl/libigl/issues/71/comments","events_url":"https://api.github.com/repos/libigl/libigl/issues/71/events","html_url":"https://github.com/libigl/libigl/pull/71","id":71967322,"number":71,"title":"adding writeOBJPoly aligned with readOBJPoly","user":{"login":"chrisidefix","id":382555,"avatar_url":"https://avatars.githubusercontent.com/u/382555?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisidefix","html_url":"https://github.com/chrisidefix","followers_url":"https://api.github.com/users/chrisidefix/followers","following_url":"https://api.github.com/users/chrisidefix/following{/other_user}","gists_url":"https://api.github.com/users/chrisidefix/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisidefix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisidefix/subscriptions","organizations_url":"https://api.github.com/users/chrisidefix/orgs","repos_url":"https://api.github.com/users/chrisidefix/repos","events_url":"https://api.github.com/users/chrisidefix/events{/privacy}","received_events_url":"https://api.github.com/users/chrisidefix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-29T19:33:44Z","updated_at":"2015-04-30T08:05:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/libigl/libigl/pulls/71","html_url":"https://github.com/libigl/libigl/pull/71","diff_url":"https://github.com/libigl/libigl/pull/71.diff","patch_url":"https://github.com/libigl/libigl/pull/71.patch"},"body":"Added a writeOBJPoly function to support writing out mixed element meshes (triangles, quads, polygons, ..), which is comparable to readOBJPoly for reading such meshes."},"comment":{"url":"https://api.github.com/repos/libigl/libigl/issues/comments/97700059","html_url":"https://github.com/libigl/libigl/pull/71#issuecomment-97700059","issue_url":"https://api.github.com/repos/libigl/libigl/issues/71","id":97700059,"user":{"login":"chrisidefix","id":382555,"avatar_url":"https://avatars.githubusercontent.com/u/382555?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisidefix","html_url":"https://github.com/chrisidefix","followers_url":"https://api.github.com/users/chrisidefix/followers","following_url":"https://api.github.com/users/chrisidefix/following{/other_user}","gists_url":"https://api.github.com/users/chrisidefix/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisidefix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisidefix/subscriptions","organizations_url":"https://api.github.com/users/chrisidefix/orgs","repos_url":"https://api.github.com/users/chrisidefix/repos","events_url":"https://api.github.com/users/chrisidefix/events{/privacy}","received_events_url":"https://api.github.com/users/chrisidefix/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T08:05:37Z","updated_at":"2015-04-30T08:05:37Z","body":"Ok, so I didn't change the simplified code you checked-in the other day for `writeOBJ(V,F)`, but I thought theoretically it would be easier to maintain, if the `writeOBJ` functions just became wrappers for `writeOBJPoly`. As you can see I am using `matrix_to_list` to convert the relevant input inside `writeOBJ(V,F,CN,FN,TC,FTC)` to `std::vector` objects and then pass it along to `writeOBJPoly(V,vF,CN,vFN,TC,vFTC)`.\r\n\r\nLastly, I haven't looked at how to generate the explicit instantiations properly. That's something left to do."}}