Files
test/source/blender/editors/uvedit/CMakeLists.txt
Lukasz Czyz 788bc5158e UV: add support for the SLIM unwrapping algorithm
Integrate an existing implementation of the SLIM unwrapping algorithm
into Blender. More info about SLIM here:
https://igl.ethz.ch/projects/slim/

This commit is based on the integration code written by Aurel Gruber
for Blender 2.7x (unfinished and never merged with the main branch).

This commit is based on Aurel's code, rebased and further improved.

Details:

- Unwrap has been moved into a sub-menu,
  slim unwrapping is exposed as: "Minimum Stretch".
- Live unwrap with SLIM refines the solutions using a timer.
- When using SLIM there are options to:
  - Set the number of iterations.
  - Weight the influence using vertex weights.
- SLIM can be disabled using the `WITH_UV_SLIM` build option.

Co-authored-by: Aurel Gruber <aurel.gruber@infix.ch>

Ref !114545
2024-09-21 16:48:53 +10:00

59 lines
1003 B
CMake

# SPDX-FileCopyrightText: 2023 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later
set(INC
../include
../../blenkernel
../../blentranslation
../../bmesh
../../geometry
../../gpu
../../makesrna
../../windowmanager
../../../../intern/eigen
# RNA_prototypes.hh
${CMAKE_BINARY_DIR}/source/blender/makesrna
)
set(INC_SYS
)
set(SRC
uvedit_buttons.cc
uvedit_clipboard.cc
uvedit_clipboard_graph_iso.cc
uvedit_draw.cc
uvedit_islands.cc
uvedit_ops.cc
uvedit_path.cc
uvedit_rip.cc
uvedit_select.cc
uvedit_smart_stitch.cc
uvedit_unwrap_ops.cc
uvedit_clipboard_graph_iso.hh
uvedit_intern.hh
)
set(LIB
PRIVATE bf::blenlib
bf_bmesh
PRIVATE bf::depsgraph
PRIVATE bf::dna
PRIVATE bf::intern::guardedalloc
)
if(WITH_UV_SLIM)
list(APPEND LIB
bf_intern_slim
)
add_definitions(-DWITH_UV_SLIM)
endif()
blender_add_lib(bf_editor_uvedit "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
# RNA_prototypes.hh
add_dependencies(bf_editor_uvedit bf_rna)