{"action":"created","issue":{"url":"https://api.github.com/repos/sghr/iGeo/issues/13","labels_url":"https://api.github.com/repos/sghr/iGeo/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/sghr/iGeo/issues/13/comments","events_url":"https://api.github.com/repos/sghr/iGeo/issues/13/events","html_url":"https://github.com/sghr/iGeo/issues/13","id":57386007,"number":13,"title":"HELP creating 3D Delaunay","user":{"login":"pjetrusp","id":10966904,"avatar_url":"https://avatars.githubusercontent.com/u/10966904?v=3","gravatar_id":"","url":"https://api.github.com/users/pjetrusp","html_url":"https://github.com/pjetrusp","followers_url":"https://api.github.com/users/pjetrusp/followers","following_url":"https://api.github.com/users/pjetrusp/following{/other_user}","gists_url":"https://api.github.com/users/pjetrusp/gists{/gist_id}","starred_url":"https://api.github.com/users/pjetrusp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjetrusp/subscriptions","organizations_url":"https://api.github.com/users/pjetrusp/orgs","repos_url":"https://api.github.com/users/pjetrusp/repos","events_url":"https://api.github.com/users/pjetrusp/events{/privacy}","received_events_url":"https://api.github.com/users/pjetrusp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-11T22:15:18Z","updated_at":"2015-02-16T21:48:27Z","closed_at":null,"body":"I am having troubles understanding how to use 3d Delaunay class in IGEO for processing. \r\nI Understand the part of creating tetrahedrons, but I can not figure it out after that. Also, I would like to ask why is processing running much slower once delaunay class is used?"},"comment":{"url":"https://api.github.com/repos/sghr/iGeo/issues/comments/74577615","html_url":"https://github.com/sghr/iGeo/issues/13#issuecomment-74577615","issue_url":"https://api.github.com/repos/sghr/iGeo/issues/13","id":74577615,"user":{"login":"sghr","id":985477,"avatar_url":"https://avatars.githubusercontent.com/u/985477?v=3","gravatar_id":"","url":"https://api.github.com/users/sghr","html_url":"https://github.com/sghr","followers_url":"https://api.github.com/users/sghr/followers","following_url":"https://api.github.com/users/sghr/following{/other_user}","gists_url":"https://api.github.com/users/sghr/gists{/gist_id}","starred_url":"https://api.github.com/users/sghr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sghr/subscriptions","organizations_url":"https://api.github.com/users/sghr/orgs","repos_url":"https://api.github.com/users/sghr/repos","events_url":"https://api.github.com/users/sghr/events{/privacy}","received_events_url":"https://api.github.com/users/sghr/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T21:48:27Z","updated_at":"2015-02-16T21:48:27Z","body":"If you are talking about IDelaunay.getTetrahedron(IVec[]), it returns an array of 4 points which represents each tetrahedron-shaped cell as 4 vertices, and you'd build lines, surfaces or meshes out of them if you want. Below is an example. It'd be heavy to run delaunay with many points because of its 5D loop but I don't know why it'd make it slower after finishing it unless you make lots of geometries along it. \r\n\r\nimport igeo.*;\r\nsize(800,600,IG.GL);\r\nIVec[] pts = new IVec[100];\r\nfor(int i=0; i<pts.length; i++){ pts[i] = IRand.pt(100); }\r\nIVec[][] vtx = IDelaunay.getTetrahedron(pts);\r\nfor(int i=0; i<vtx.length; i++){\r\n  IColor c = IRand.clr();\r\n  new ISurface(vtx[i][0],vtx[i][1],vtx[i][2]).clr(c);\r\n  new ISurface(vtx[i][0],vtx[i][1],vtx[i][3]).clr(c);\r\n  new ISurface(vtx[i][0],vtx[i][2],vtx[i][3]).clr(c);\r\n  new ISurface(vtx[i][1],vtx[i][2],vtx[i][3]).clr(c);\r\n}\r\n"}}