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 03:56:42 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-05-23 03:56:42 +0400
commit7d377478c394931f1226fbbacf96e095daf18c5d (patch)
treed5fae412ade82e42bee7415d33279afc3d0b0c7e /source/blender/freestyle/intern/application/Controller.h
parentb85985535dd420e50cc906bd6e7dd352cc2b8b97 (diff)
New option to specify the angular threshold for detecting crease edges.
An entry "Crease Angle" has been added to the Layers tab of the Render buttons, to allow users to specify an angle (between 0 and 180) used for crease edge detection. An edge is considered a crease edge if the angle between two faces sharing the edge is smaller than the threshold. The default value is 134.43 degrees (for backward compatibility). Be aware that a larger threshold leads to a larger number of feature edges and thus a larger memory consumption.
Diffstat (limited to 'source/blender/freestyle/intern/application/Controller.h')
-rwxr-xr-xsource/blender/freestyle/intern/application/Controller.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/application/Controller.h b/source/blender/freestyle/intern/application/Controller.h
index 739e49c16ca..367b57bf6c3 100755
--- a/source/blender/freestyle/intern/application/Controller.h
+++ b/source/blender/freestyle/intern/application/Controller.h
@@ -124,6 +124,8 @@ public:
void setComputeSteerableViewMapFlag(bool iBool);
bool getComputeSteerableViewMapFlag() const;
+ void setCreaseAngle(real angle){_creaseAngle=angle;}
+ real getCreaseAngle() const {return _creaseAngle;}
void setSphereRadius(real s){_sphereRadius=s;}
real getSphereRadius() const {return _sphereRadius;}
void setSuggestiveContourKrDerivativeEpsilon(real dkr){_suggestiveContourKrDerivativeEpsilon=dkr;}
@@ -225,6 +227,7 @@ private:
bool _ComputeRidges;
bool _ComputeSuggestive;
bool _ComputeMaterialBoundaries;
+ real _creaseAngle;
real _sphereRadius;
real _suggestiveContourKrDerivativeEpsilon;