Skip to content

Commit

Permalink
update atlas params for faster UV computation @thmoa
Browse files Browse the repository at this point in the history
  • Loading branch information
YuliangXiu committed Mar 1, 2024
1 parent 5efe7d6 commit f84972c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ def auto_uv(self, cache_path=None):
atlas = xatlas.Atlas()
atlas.add_mesh(v_np, f_np)
chart_options = xatlas.ChartOptions()
chart_options.max_iterations = 4
chart_options.max_iterations = 1
chart_options.max_cost = 10.0
atlas.generate(chart_options=chart_options)
vmapping, ft_np, vt_np = atlas[0] # [N], [M, 3], [N, 2]

Expand Down

0 comments on commit f84972c

Please sign in to comment.