{"action":"created","issue":{"url":"https://api.github.com/repos/alecjacobson/gptoolbox/issues/4","labels_url":"https://api.github.com/repos/alecjacobson/gptoolbox/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/alecjacobson/gptoolbox/issues/4/comments","events_url":"https://api.github.com/repos/alecjacobson/gptoolbox/issues/4/events","html_url":"https://github.com/alecjacobson/gptoolbox/issues/4","id":82236368,"number":4,"title":"mex problems of gptoolbox","user":{"login":"yqwang2006","id":7324348,"avatar_url":"https://avatars.githubusercontent.com/u/7324348?v=3","gravatar_id":"","url":"https://api.github.com/users/yqwang2006","html_url":"https://github.com/yqwang2006","followers_url":"https://api.github.com/users/yqwang2006/followers","following_url":"https://api.github.com/users/yqwang2006/following{/other_user}","gists_url":"https://api.github.com/users/yqwang2006/gists{/gist_id}","starred_url":"https://api.github.com/users/yqwang2006/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yqwang2006/subscriptions","organizations_url":"https://api.github.com/users/yqwang2006/orgs","repos_url":"https://api.github.com/users/yqwang2006/repos","events_url":"https://api.github.com/users/yqwang2006/events{/privacy}","received_events_url":"https://api.github.com/users/yqwang2006/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-29T03:26:57Z","updated_at":"2015-06-02T03:06:22Z","closed_at":null,"body":"I'm using the gptoolbox to generate some sdf data from 'off' files. However, the gptoolbox would make MATLAB  crash. First, I compiled the signed_distance_isosurface.cpp in 'mex' dir using next command:\r\n\r\n' mex -g -largeArrayDims -DMEX  CXXFLAGS=\"\\$CXXFLAGS -std=c++11\"...\r\n   -I/usr/local/igl/libigl/include ...\r\n   -I/usr/include/eigen3 ...\r\n   -I/usr/include ...\r\n  -L/usr/lib ...\r\n  -lCGAL -lCGAL_Core -lgmp -lmpfr... \r\n  -lboost_thread -lboost_system ...\r\n   signed_distance_isosurface.cpp'\r\n\r\nThis process would not generate any errors. However, MATLAB would crash when I tried to run a demo. The demo code is:\r\n\r\naddpath('mesh');\r\naddpath('mex');\r\n[V,F,UV,C,N] = readOFF( 'bed.off');\r\n[OV,OF] = signed_distance_isosurface(V,F);\r\n\r\nThe error is shown in next fig. Could you please help me? Thanks.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/7324348/7875864/614757a0-05f5-11e5-8297-8ea59d00d38a.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/alecjacobson/gptoolbox/issues/comments/107783937","html_url":"https://github.com/alecjacobson/gptoolbox/issues/4#issuecomment-107783937","issue_url":"https://api.github.com/repos/alecjacobson/gptoolbox/issues/4","id":107783937,"user":{"login":"alecjacobson","id":2241689,"avatar_url":"https://avatars.githubusercontent.com/u/2241689?v=3","gravatar_id":"","url":"https://api.github.com/users/alecjacobson","html_url":"https://github.com/alecjacobson","followers_url":"https://api.github.com/users/alecjacobson/followers","following_url":"https://api.github.com/users/alecjacobson/following{/other_user}","gists_url":"https://api.github.com/users/alecjacobson/gists{/gist_id}","starred_url":"https://api.github.com/users/alecjacobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecjacobson/subscriptions","organizations_url":"https://api.github.com/users/alecjacobson/orgs","repos_url":"https://api.github.com/users/alecjacobson/repos","events_url":"https://api.github.com/users/alecjacobson/events{/privacy}","received_events_url":"https://api.github.com/users/alecjacobson/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T03:06:22Z","updated_at":"2015-06-02T03:06:22Z","body":"Seems to be a bug. For now I'd suggest removing any degenerate faces from your input mesh. "}}