{"action":"created","issue":{"url":"https://api.github.com/repos/libfive/libfive/issues/149","repository_url":"https://api.github.com/repos/libfive/libfive","labels_url":"https://api.github.com/repos/libfive/libfive/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/libfive/libfive/issues/149/comments","events_url":"https://api.github.com/repos/libfive/libfive/issues/149/events","html_url":"https://github.com/libfive/libfive/issues/149","id":301532471,"number":149,"title":"extend libfive API: convert distance function to mesh","user":{"login":"doug-moen","id":5274273,"avatar_url":"https://avatars2.githubusercontent.com/u/5274273?v=4","gravatar_id":"","url":"https://api.github.com/users/doug-moen","html_url":"https://github.com/doug-moen","followers_url":"https://api.github.com/users/doug-moen/followers","following_url":"https://api.github.com/users/doug-moen/following{/other_user}","gists_url":"https://api.github.com/users/doug-moen/gists{/gist_id}","starred_url":"https://api.github.com/users/doug-moen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doug-moen/subscriptions","organizations_url":"https://api.github.com/users/doug-moen/orgs","repos_url":"https://api.github.com/users/doug-moen/repos","events_url":"https://api.github.com/users/doug-moen/events{/privacy}","received_events_url":"https://api.github.com/users/doug-moen/received_events","type":"User","site_admin":false},"labels":[{"id":838733588,"url":"https://api.github.com/repos/libfive/libfive/labels/discussion","name":"discussion","color":"304030","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-03-01T19:37:45Z","updated_at":"2018-03-01T23:35:30Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I would like to use libfive to create a mesh using a signed distance function defined by Curv. But I can't use the existing libfive API, because I can't construct a tree. The available tree opcodes are too limited to support Curv.\r\n\r\nI'd like to extend the existing libfive API so that I can use an external signed distance function with the signature\r\n     float distance(float x,float y,float z)\r\nto construct a mesh. Since we are using C++, a more flexible interface is an object of type\r\n     std::function<float(float,float,float)>\r\n\r\nMaybe I can do this by adding a new opcode, or a new type of tree node, that contains a signed distance function. This is the approach I am currently investigating, but do you have a better idea? Or suggestions on how to implement this?"},"comment":{"url":"https://api.github.com/repos/libfive/libfive/issues/comments/369769084","html_url":"https://github.com/libfive/libfive/issues/149#issuecomment-369769084","issue_url":"https://api.github.com/repos/libfive/libfive/issues/149","id":369769084,"user":{"login":"doug-moen","id":5274273,"avatar_url":"https://avatars2.githubusercontent.com/u/5274273?v=4","gravatar_id":"","url":"https://api.github.com/users/doug-moen","html_url":"https://github.com/doug-moen","followers_url":"https://api.github.com/users/doug-moen/followers","following_url":"https://api.github.com/users/doug-moen/following{/other_user}","gists_url":"https://api.github.com/users/doug-moen/gists{/gist_id}","starred_url":"https://api.github.com/users/doug-moen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doug-moen/subscriptions","organizations_url":"https://api.github.com/users/doug-moen/orgs","repos_url":"https://api.github.com/users/doug-moen/repos","events_url":"https://api.github.com/users/doug-moen/events{/privacy}","received_events_url":"https://api.github.com/users/doug-moen/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T23:35:30Z","updated_at":"2018-03-01T23:35:30Z","author_association":"CONTRIBUTOR","body":"Snyder's thesis is here: https://thesis.library.caltech.edu/2865/1/Snyder_jm_1991.pdf\r\n\r\nIt's a B-rep system. Booleans are complex and expensive, but sweeps are easier than with signed distance functions."}}
{"actor":{"display_login":"doug-moen"}}