SarahWeiii / CoACD

[SIGGRAPH2022] Approximate Convex Decomposition for 3D Meshes with Collision-Aware Concavity and Tree Search
https://colin97.github.io/CoACD/
MIT License
457 stars 59 forks source link

Is possible to see only the preprocessed mesh? #25

Closed fire closed 11 months ago

fire commented 1 year ago

Hi,

Do you know what settings allows me to see the preprocessed mesh without the CoACD algorithm generation?

Wanted to debug the preprocessor.

SarahWeiii commented 1 year ago

Currently the Python library does not have this feature. You can modify the C++ code (main.cpp) and save the mesh after preprocess.

fire commented 1 year ago

Would you like any syntax for it in the command line?

SarahWeiii commented 12 months ago

Do you need it in Python package or in C++?

fire commented 12 months ago

I would prefer c++ as I wanted to use it in a command line tool called by Godot Engine. Any python code would be removed.

Remember the problem space being very difficult.

  1. openvdb is used to force the geometric shape to be manifold
  2. CoACD's is then applied
SarahWeiii commented 12 months ago

I added a command in C++ code (main.cpp) for saving preprocessed mesh, you can use -ro or --remesh-output to designate the output path. It saves the mesh after preprocessing and normalization to [-1,1] (if disabling the preprocess, it outputs the normalized mesh).