liminchen / OptCuts

OptCuts, a new parameterization algorithm, jointly optimizes arbitrary embeddings for seam quality and distortion. OptCuts requires no parameter tuning; automatically generating mappings that minimize seam-lengths while satisfying user-requested distortion bounds.
http://www.cs.ubc.ca/labs/imager/tr/2018/OptCuts/
MIT License
279 stars 47 forks source link

Will OptCuts add new cuts to a mesh that already has boundaries? #19

Closed alecjacobson closed 7 months ago

alecjacobson commented 8 months ago

This t-shirt has boundaries and seems to be crashing optcuts simple-shirt-1000.obj.zip

liminchen commented 8 months ago

The issue is that OptCuts didn't handle input surfaces with multiple disconnected components if no UV was given. I just did a quick fix in 1904d017b1e229c553e8b7ec719ab79334103b3a, right now it should work, including your input, as long as all the components are in disk topology. Could you please try that and let me know how it works? I will probably do a more robust fix later.

liminchen commented 7 months ago

Made a more reliable fix in 2218d87dff5a97d795c715ca6234795486692fdd

alecjacobson commented 7 months ago

Awesome! thanks so much