Skip to content

Dual Contouring #194

Closed
Closed

Description

@csyhping

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!

Activity

  1. alecjacobson commented on May 2, 2023

    @alecjacobson
    Contributor

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

  2. alecjacobson commented on Nov 18, 2024

    @alecjacobson
    Contributor

    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.

  3. alecjacobson commented on Aug 10, 2026

    @alecjacobson
    Contributor

    Dual contouring is now available in the Python bindings — igl.dual_contouring is bound on main (src/dual_contouring.cpp) and ships in recent releases. Closing as resolved; please reopen if the exposed API doesn't cover your use case.

    (Written by Claude Code on behalf of @alecjacobson.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions