Code Monkey home page Code Monkey logo

Comments (1)

aluo-x avatar aluo-x commented on June 19, 2024

Also using ManifoldPlus on shapenet as part of a SDF generation pipeline. Generally I see few artifacts at --depth 9, however there are still problems with complex objects like cars, usually when there are thinly connected parts, ManifoldPlus seems to fill in those regions.

For my purposes, I only need correctly oriented faces and distance is computed using the original mesh, so my tolerance for artifacts is higher.

Here is a snippet to batch process shapenet objects:

from tqdm import tqdm

def fixmesh(paths):
    input_path, output_path = paths
    try:
        completed = subprocess.run(["/home/aluo/Tools2/ManifoldPlus/build/manifold", "--input", input_path, "--output", output_path, "--depth", "9"], timeout=60, check=True, capture_output=True)
    except:
        print("{} failed to run",format(input_path))
        return False
    return True

#our_paths = list(zip(inputs, outputs))
Parallel(n_jobs=4)(delayed(fixmesh)(i) for i in tqdm(our_paths))

Edit: For shapenetv2 specifically, I have also tried outer hull algorithms, but these generally fail by causing thin structures to disappear. Mesh -> Voxel -> Mesh methods generally fail due to the non watertight nature of a lot of the meshes.

from manifoldplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.