forked from bartvdbraak/blender
c96ae81160
This adds support for ngons and attributes on subdivision meshes. Ngons are needed for proper attribute interpolation as well as correct Catmull-Clark subdivision. Several changes are made to achieve this: - new primitive `SubdFace` added to `Mesh` - 3 more textures are used to store info on patches from subd meshes - Blender export uses loop interface instead of tessface for subd meshes - `Attribute` class is updated with a simplified way to pass primitive counts around and to support ngons. - extra points for ngons are generated for O(1) attribute interpolation - curves are temporally disabled on subd meshes to avoid various bugs with implementation - old unneeded code is removed from `subd/` - various fixes and improvements Reviewed By: brecht Differential Revision: https://developer.blender.org/D2108
35 lines
392 B
CMake
35 lines
392 B
CMake
|
|
set(INC
|
|
.
|
|
../graph
|
|
../kernel
|
|
../kernel/svm
|
|
../render
|
|
../util
|
|
)
|
|
|
|
set(INC_SYS
|
|
|
|
)
|
|
|
|
set(SRC
|
|
subd_dice.cpp
|
|
subd_patch.cpp
|
|
subd_split.cpp
|
|
)
|
|
|
|
set(SRC_HEADERS
|
|
subd_dice.h
|
|
subd_patch.h
|
|
subd_split.h
|
|
)
|
|
|
|
if(WITH_CYCLES_OPENSUBDIV)
|
|
add_definitions(-DWITH_OPENSUBDIV)
|
|
endif()
|
|
|
|
include_directories(${INC})
|
|
include_directories(SYSTEM ${INC_SYS})
|
|
|
|
add_library(cycles_subd ${SRC} ${SRC_HEADERS})
|