libigl-python-bindings icon indicating copy to clipboard operation
libigl-python-bindings copied to clipboard

Dual Contouring

Open csyhping opened this issue 2 years ago • 2 comments

Hi @alecjacobson @jdumas , thanks for you amazing work. I just found that in C++ igl, dual contouring is supported. May I ask if there is such API in python igl? Thanks!

csyhping avatar May 02 '23 02:05 csyhping

I'm guessing this might take a little extra to figure out how to pass python function handles correctly here.

alecjacobson avatar May 02 '23 15:05 alecjacobson

nanobind seems to handle converting python functions to the necessary std::functions with eigen types just fine. But it's incredibly slow to do this for every evaluation independently. I'm not sure it's a good idea to expose such a slow binding.

It'd be better to do something like #237 where we change libigl so that it returns the combinatorially information necessary, then the function/gradient evaluations can be done (in batch) on python and in the case of dual contouring aggregated to compute the vertex locations in a new libigl C++ function.

alecjacobson avatar Nov 18 '24 15:11 alecjacobson