diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2015-08-09 17:36:53 +0300 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2015-10-26 14:55:34 +0300 |
commit | 3e9f6fc281dd465a6406cd6bec9dfceb9adf28ab (patch) | |
tree | 191c8a31a6ba67e0ba9634e2feec74ac7e02fe94 /source/blender/freestyle/intern/application | |
parent | afe3b55483d5f0cbaccc7fb3974ac2e5cbdfffbe (diff) |
Freestyle: minor speed-up by omitting the calculation of the smallest edge size.
BlenderFileLoader tries to find the smallest edge size but the computed value is not used.
Diffstat (limited to 'source/blender/freestyle/intern/application')
-rw-r--r-- | source/blender/freestyle/intern/application/Controller.cpp | 6 | ||||
-rw-r--r-- | source/blender/freestyle/intern/application/Controller.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/application/Controller.cpp b/source/blender/freestyle/intern/application/Controller.cpp index 8983a781237..eb6a4702cba 100644 --- a/source/blender/freestyle/intern/application/Controller.cpp +++ b/source/blender/freestyle/intern/application/Controller.cpp @@ -106,7 +106,9 @@ Controller::Controller() _ProgressBar = new ProgressBar; _SceneNumFaces = 0; +#if 0 _minEdgeSize = DBL_MAX; +#endif _EPSILON = 1.0e-6; _bboxDiag = 0; @@ -264,9 +266,11 @@ int Controller::LoadMesh(Render *re, SceneRenderLayer *srl) } _SceneNumFaces += loader.numFacesRead(); +#if 0 if (loader.minEdgeSize() < _minEdgeSize) { _minEdgeSize = loader.minEdgeSize(); } +#endif #if 0 // DEBUG ScenePrettyPrinter spp; @@ -406,7 +410,9 @@ void Controller::DeleteWingedEdge() _Grid.clear(); _Scene3dBBox.clear(); _SceneNumFaces = 0; +#if 0 _minEdgeSize = DBL_MAX; +#endif } void Controller::DeleteViewMap(bool freeCache) diff --git a/source/blender/freestyle/intern/application/Controller.h b/source/blender/freestyle/intern/application/Controller.h index 22eaaf5082f..6f3cb3b274b 100644 --- a/source/blender/freestyle/intern/application/Controller.h +++ b/source/blender/freestyle/intern/application/Controller.h @@ -209,7 +209,9 @@ private: BBox<Vec3r> _Scene3dBBox; unsigned int _SceneNumFaces; +#if 0 real _minEdgeSize; +#endif real _EPSILON; real _bboxDiag; |