kmammou / v-hacd

Automatically exported from code.google.com/p/v-hacd
BSD 3-Clause "New" or "Revised" License
1.4k stars 264 forks source link

Question: Possible to export each hull as a separate file? #118

Closed Nianzu closed 2 years ago

Nianzu commented 2 years ago

Hi, I'm not sure if this is the right way to reach out to you guys. The library is awesome! For my use case, I need to output each convex hull as a separate file. (OriginalMesh_1.stl, OriginalMesh_2.stl, etc) Is there an easy way to do this? I read through the documentation and the code to try to find out, but I was unable to find anything. Thanks image (1)

image !

jratcliff63367 commented 2 years ago

Yes. Use -o obj or -o stl to save out as a series of wavefront OBJ or STL files. Also, someone just the other day revised the wavefront export code to put object markers in the output which might work with your toolchain better.

Nianzu commented 2 years ago

Ah, brilliant! Can't believe I missed that. Thanks!