Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-05-23 02:21:15 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-05-23 02:21:15 +0400
commitb85985535dd420e50cc906bd6e7dd352cc2b8b97 (patch)
tree79c4e7703d218855b7460bd5b32e85ee3926d885 /source/blender/freestyle/intern/winged_edge/Nature.h
parentdbcb73c033fc15fc0df2ab0a05ac0b2c4a9a31b1 (diff)
New option for detecting feature edges at material boundaries.
A checkbox "Material Boundaries" has been added to the Freestyle options in the Layers tab of the Render buttons. By enabling the option, any edge between two faces with different materials is detected as a feature edge. In style modules, edges at material boundaries can be tested with pyNatureUP1D(Nature.MATERIAL_BOUNDARY).
Diffstat (limited to 'source/blender/freestyle/intern/winged_edge/Nature.h')
-rwxr-xr-xsource/blender/freestyle/intern/winged_edge/Nature.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/winged_edge/Nature.h b/source/blender/freestyle/intern/winged_edge/Nature.h
index 1f165e677f5..52c9c60d8c7 100755
--- a/source/blender/freestyle/intern/winged_edge/Nature.h
+++ b/source/blender/freestyle/intern/winged_edge/Nature.h
@@ -69,6 +69,8 @@ namespace Nature {
static const EdgeNature VALLEY = (1 << 4); // 16
/*! true for suggestive contours */
static const EdgeNature SUGGESTIVE_CONTOUR = (1 << 5); // 32
+ /*! true for material boundaries */
+ static const EdgeNature MATERIAL_BOUNDARY = (1 << 6); // 64
} // end of namespace Nature