Skin modifier documentation: http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier Implementation based in part off the paper "B-Mesh: A Fast Modeling System for Base Meshes of 3D Articulated Shapes" (Zhongping Ji, Ligang Liu, Yigang Wang) Note that to avoid confusion with Blender's BMesh data structure, this tool is renamed as the Skin modifier. The B-Mesh paper is current available here: http://www.math.zju.edu.cn/ligangliu/CAGD/Projects/BMesh/ The main missing features in this code compared to the paper are: * No mesh evolution. The paper suggests iteratively subsurfing the skin output and adapting the output to better conform with the spheres of influence surrounding each vertex. * No mesh fairing. The paper suggests re-aligning output edges to follow principal mesh curvatures. * No auxiliary balls. These would serve to influence mesh evolution, which as noted above is not implemented. The code also adds some features not present in the paper: * Loops in the input edge graph. * Concave surfaces around branch nodes. The paper does not discuss how to handle non-convex regions; this code adds a number of cleanup operations to handle many (though not all) of these cases.
153 lines
3.2 KiB
CMake
153 lines
3.2 KiB
CMake
# ***** BEGIN GPL LICENSE BLOCK *****
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software Foundation,
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
#
|
|
# The Original Code is Copyright (C) 2006, Blender Foundation
|
|
# All rights reserved.
|
|
#
|
|
# The Original Code is: all of this file.
|
|
#
|
|
# Contributor(s): Jacques Beaurain
|
|
# Ben Batt
|
|
#
|
|
# ***** END GPL LICENSE BLOCK *****
|
|
|
|
set(INC
|
|
.
|
|
intern
|
|
../blenkernel
|
|
../blenkernel/intern
|
|
../blenlib
|
|
../blenfont
|
|
../blenloader
|
|
../makesdna
|
|
../makesrna
|
|
../bmesh
|
|
../render/extern/include
|
|
../../../intern/elbeem/extern
|
|
../../../intern/guardedalloc
|
|
)
|
|
|
|
set(INC_SYS
|
|
${ZLIB_INCLUDE_DIRS}
|
|
${GLEW_INCLUDE_PATH}
|
|
)
|
|
|
|
set(SRC
|
|
intern/MOD_armature.c
|
|
intern/MOD_array.c
|
|
intern/MOD_bevel.c
|
|
intern/MOD_boolean.c
|
|
intern/MOD_build.c
|
|
intern/MOD_cast.c
|
|
intern/MOD_cloth.c
|
|
intern/MOD_collision.c
|
|
intern/MOD_curve.c
|
|
intern/MOD_decimate.c
|
|
intern/MOD_displace.c
|
|
intern/MOD_dynamicpaint.c
|
|
intern/MOD_edgesplit.c
|
|
intern/MOD_explode.c
|
|
intern/MOD_fluidsim.c
|
|
intern/MOD_fluidsim_util.c
|
|
intern/MOD_hook.c
|
|
intern/MOD_lattice.c
|
|
intern/MOD_mask.c
|
|
intern/MOD_meshdeform.c
|
|
intern/MOD_mirror.c
|
|
intern/MOD_multires.c
|
|
intern/MOD_none.c
|
|
intern/MOD_ocean.c
|
|
intern/MOD_particleinstance.c
|
|
intern/MOD_particlesystem.c
|
|
intern/MOD_remesh.c
|
|
intern/MOD_screw.c
|
|
intern/MOD_shapekey.c
|
|
intern/MOD_shrinkwrap.c
|
|
intern/MOD_simpledeform.c
|
|
intern/MOD_skin.c
|
|
intern/MOD_smoke.c
|
|
intern/MOD_smooth.c
|
|
intern/MOD_softbody.c
|
|
intern/MOD_solidify.c
|
|
intern/MOD_subsurf.c
|
|
intern/MOD_surface.c
|
|
intern/MOD_util.c
|
|
intern/MOD_uvproject.c
|
|
intern/MOD_warp.c
|
|
intern/MOD_wave.c
|
|
intern/MOD_weightvg_util.c
|
|
intern/MOD_weightvgedit.c
|
|
intern/MOD_weightvgmix.c
|
|
intern/MOD_weightvgproximity.c
|
|
|
|
MOD_modifiertypes.h
|
|
intern/MOD_boolean_util.h
|
|
intern/MOD_fluidsim_util.h
|
|
intern/MOD_util.h
|
|
intern/MOD_weightvg_util.h
|
|
)
|
|
|
|
if(WITH_MOD_BOOLEAN)
|
|
add_definitions(-DWITH_MOD_BOOLEAN)
|
|
list(APPEND SRC
|
|
intern/MOD_boolean_util.c
|
|
)
|
|
list(APPEND INC
|
|
../../../intern/bsp/extern
|
|
)
|
|
endif()
|
|
|
|
if(WITH_MOD_REMESH)
|
|
add_definitions(-DWITH_MOD_REMESH)
|
|
list(APPEND INC
|
|
../../../intern/dualcon
|
|
)
|
|
endif()
|
|
|
|
if(WITH_MOD_DECIMATE)
|
|
add_definitions(-DWITH_MOD_DECIMATE)
|
|
list(APPEND INC
|
|
../../../intern/decimation/extern
|
|
)
|
|
endif()
|
|
|
|
if(WITH_MOD_FLUID)
|
|
add_definitions(-DWITH_MOD_FLUID)
|
|
endif()
|
|
|
|
if(WITH_MOD_OCEANSIM)
|
|
add_definitions(-DWITH_OCEANSIM)
|
|
endif()
|
|
|
|
if(WITH_GAMEENGINE)
|
|
# for MOD_navmesh.c
|
|
add_definitions(-DWITH_GAMEENGINE)
|
|
list(APPEND INC
|
|
../gpu
|
|
../../../extern/recastnavigation
|
|
)
|
|
endif()
|
|
|
|
if(WITH_INTERNATIONAL)
|
|
add_definitions(-DWITH_INTERNATIONAL)
|
|
endif()
|
|
|
|
if(WITH_OPENMP)
|
|
add_definitions(-DPARALLEL=1)
|
|
endif()
|
|
|
|
blender_add_lib(bf_modifiers "${SRC}" "${INC}" "${INC_SYS}")
|