From 7d377478c394931f1226fbbacf96e095daf18c5d Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Sat, 22 May 2010 23:56:42 +0000 Subject: 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. --- source/blender/freestyle/intern/application/Controller.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/freestyle/intern/application/Controller.h') 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; -- cgit v1.2.3