Fix #103469: Update UV Sphere Projection with Seam support. #104847

Merged
Chris Blackbourn merged 4 commits from Chris_Blackbourn/blender:uv-sphere-seam into main 2023-03-02 00:48:47 +01:00

4 Commits

Author SHA1 Message Date
Chris Blackbourn a5338baf1e Fix #103469: Update UV Sphere Projection to Preserve Seams.
Note: Applies to both UV Sphere Projection and UV Cylinder Projection.

Adds a new boolean option "Preserve Seams" to UV Sphere Projection.

With "Preserve Seams" active, the Sphere projection will do a
greedy flood fill over the 3D topology, stopping at 3D boundaries
and also stopping at edges where "Mark Seam" has been used in the
3D Viewport.

During the flood fill, each face is mapped using the spherical
projection and then adjusted along the U axis so the UV map is
continuous across the shared edge.

With careful seam placement, this allows for the creation of a
spiral-cut-orange-peel unwrap, where a sphere can be unwrapped
into a single long continuous strip, wrapping multiple times around
the object.

Finally, if the flood fill process creates multiple UV Islands,
they are spaced along the `U` axis to prevent overlaps.
2023-03-02 11:51:44 +13:00
Chris Blackbourn 2f9dcb1378 Fix 103469: Update UV Sphere Projection with Seam support.
Fix islands

Update seam from enum to boolean.

Restore missing deselection logic with Cylinder project.
2023-02-17 17:19:19 +13:00
Chris Blackbourn ab7e272438 Merge branch 'main' into uv-sphere-seam 2023-02-17 02:00:40 +01:00
Chris Blackbourn 3de45c327e Fix 103469: Update UV Sphere Projection with Seam support.
Also updates UV Cylinder projection in same way.
2023-02-17 13:49:50 +13:00