NVlabs / neuralangelo

Official implementation of "Neuralangelo: High-Fidelity Neural Surface Reconstruction" (CVPR 2023)
https://research.nvidia.com/labs/dir/neuralangelo/
Other
4.33k stars 387 forks source link

Create enclosing folder on mesh export if it does not already exit #96

Closed ninjamode closed 1 year ago

ninjamode commented 1 year ago

Currently, when trying to export a mesh, neuralangelo will crash if the path to the designated output file does not already exist. I think it's in most users intentions to have that path created on the spot, otherwise it wouldn't have been specified like that.

This change adds a check that creates parent folders if they are not already there to prevent that crash. It's a very minor conveniece change.

Feel free to do adjust or do whatever with this pull request, and thank you for the repo!

chenhsuanlin commented 1 year ago

@ninjamode thanks for the PR! Slightly simplified the code to support the same feature. Will merge!