Files
test/source/blender/blenkernel/intern
Weizhen Huang ee578cc738 Fix #139753: Discontinuity in mesh tangent without UV map
when there is no uv, we call the function `map_to_sphere()` to create
temporary uv for computing the tangent. It could happen that a triangle
has vertices with the u coordinates going across the line where u wraps
from 1 to 0. In this case, just computing the difference of the u
coordinates results in the wrong triangle area.

To fix this problem, we compute distance in toroidal (wrap around)
space.

This is safe for coordinates generated by `map_to_sphere()` function,
because it is not supposed to map the positions of a triangle to u
coordinates that span larger than 0.5.

Pull Request: https://projects.blender.org/blender/blender/pulls/139880
2025-06-09 13:52:00 +02:00
..
2025-01-26 00:39:59 +01:00
2025-05-20 04:33:43 +00:00
2025-06-07 12:40:27 +10:00
2025-05-24 11:45:06 +02:00
2025-06-06 11:53:26 +02:00
2025-05-22 16:32:44 +02:00
2025-05-09 16:13:25 +02:00
2025-04-22 06:13:31 +00:00
2025-06-09 08:31:09 +02:00
2025-05-08 15:37:28 +02:00
2025-06-06 11:53:26 +02:00
2025-05-23 15:34:26 +02:00
2025-05-29 11:01:29 +10:00
2025-05-09 16:13:25 +02:00