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:
Diffstat (limited to 'source/blender/freestyle/intern/view_map')
-rw-r--r--source/blender/freestyle/intern/view_map/GridDensityProvider.h4
-rw-r--r--source/blender/freestyle/intern/view_map/Silhouette.h8
-rw-r--r--source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp4
-rw-r--r--source/blender/freestyle/intern/view_map/SphericalGrid.h4
-rw-r--r--source/blender/freestyle/intern/view_map/SteerableViewMap.cpp6
-rw-r--r--source/blender/freestyle/intern/view_map/ViewMap.cpp4
-rw-r--r--source/blender/freestyle/intern/view_map/ViewMapAdvancedIterators.h1
-rw-r--r--source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp6
-rw-r--r--source/blender/freestyle/intern/view_map/ViewMapTesselator.h4
9 files changed, 13 insertions, 28 deletions
diff --git a/source/blender/freestyle/intern/view_map/GridDensityProvider.h b/source/blender/freestyle/intern/view_map/GridDensityProvider.h
index 26b76006686..290d5b0cfba 100644
--- a/source/blender/freestyle/intern/view_map/GridDensityProvider.h
+++ b/source/blender/freestyle/intern/view_map/GridDensityProvider.h
@@ -22,10 +22,9 @@
* \brief Class to define a cell grid surrounding the projected image of a scene
*/
-/* clang-format off */
-#include <stdexcept>
#include <algorithm>
#include <memory>
+#include <stdexcept>
#include "AutoPtrHelper.h"
#include "OccluderSource.h"
@@ -37,7 +36,6 @@
#ifdef WITH_CXX_GUARDEDALLOC
# include "MEM_guardedalloc.h"
#endif
-/* clang-format on */
namespace Freestyle {
diff --git a/source/blender/freestyle/intern/view_map/Silhouette.h b/source/blender/freestyle/intern/view_map/Silhouette.h
index 648eb4e453d..8503836e0ca 100644
--- a/source/blender/freestyle/intern/view_map/Silhouette.h
+++ b/source/blender/freestyle/intern/view_map/Silhouette.h
@@ -1592,15 +1592,15 @@ class SShape {
/*! Splits an edge into several edges.
* The edge's vertices are passed rather than the edge itself. This way, all feature edges
- * (SILHOUETTE, CREASE, BORDER) are splitted in the same time. The processed edges are flagged as
- * done (using the userdata flag).One single new vertex is created whereas several splitted edges
+ * (SILHOUETTE, CREASE, BORDER) are split in the same time. The processed edges are flagged as
+ * done (using the user-data flag).One single new vertex is created whereas several split edges
* might created for the different kinds of edges. These new elements are added to the lists
* maintained by the shape.
* New chains are also created.
* ioA
- * The first vertex for the edge that gets splitted
+ * The first vertex for the edge that gets split.
* ioB
- * The second vertex for the edge that gets splitted
+ * The second vertex for the edge that gets split.
* iParameters
* A vector containing 2D real vectors indicating the parameters giving the intersections
* coordinates in 3D and in 2D. These intersections points must be sorted from B to A. Each
diff --git a/source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp b/source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp
index 2c7560259fe..46d4389ea83 100644
--- a/source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp
+++ b/source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp
@@ -20,9 +20,8 @@
* implies that this geom engine has as member data the viewpoint, transformations, projections...
*/
-/* clang-format off */
-#include <cstring>
#include <cstdio>
+#include <cstring>
#include "Silhouette.h"
#include "SilhouetteGeomEngine.h"
@@ -30,7 +29,6 @@
#include "../geometry/GeomUtils.h"
#include "BKE_global.h"
-/* clang-format on */
using namespace std;
diff --git a/source/blender/freestyle/intern/view_map/SphericalGrid.h b/source/blender/freestyle/intern/view_map/SphericalGrid.h
index 3c1ca3b5992..e9074580fb9 100644
--- a/source/blender/freestyle/intern/view_map/SphericalGrid.h
+++ b/source/blender/freestyle/intern/view_map/SphericalGrid.h
@@ -24,7 +24,6 @@
#define SPHERICAL_GRID_LOGGING 0
-/* clang-format off */
// I would like to avoid using deque because including ViewMap.h and <deque> or <vector> separately
// results in redefinitions of identifiers. ViewMap.h already includes <vector> so it should be a
// safe fall-back.
@@ -35,9 +34,9 @@
#include "OccluderSource.h"
#include "ViewMap.h"
-#include "../geometry/Polygon.h"
#include "../geometry/BBox.h"
#include "../geometry/GridHelpers.h"
+#include "../geometry/Polygon.h"
#include "../system/PointerSequence.h"
@@ -48,7 +47,6 @@
#ifdef WITH_CXX_GUARDEDALLOC
# include "MEM_guardedalloc.h"
#endif
-/* clang-format on */
namespace Freestyle {
diff --git a/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp b/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp
index fd8f7958e83..efda4b7fd2a 100644
--- a/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp
+++ b/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp
@@ -20,7 +20,6 @@
* to.
*/
-/* clang-format off */
#include <sstream>
#include "Silhouette.h"
@@ -28,17 +27,14 @@
#include "../geometry/Geom.h"
-#include "../image/ImagePyramid.h"
#include "../image/Image.h"
+#include "../image/ImagePyramid.h"
#include "BKE_global.h"
#include "BLI_math.h"
-extern "C" {
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
-}
-/* clang-format on */
namespace Freestyle {
diff --git a/source/blender/freestyle/intern/view_map/ViewMap.cpp b/source/blender/freestyle/intern/view_map/ViewMap.cpp
index 5ea28e4ac41..47c6c3a1f6a 100644
--- a/source/blender/freestyle/intern/view_map/ViewMap.cpp
+++ b/source/blender/freestyle/intern/view_map/ViewMap.cpp
@@ -19,15 +19,13 @@
* \brief Classes to define a View Map (ViewVertex, ViewEdge, etc.)
*/
-/* clang-format off */
#include <float.h>
#include "ViewMap.h"
-#include "ViewMapIterators.h"
#include "ViewMapAdvancedIterators.h"
+#include "ViewMapIterators.h"
#include "../geometry/GeomUtils.h"
-/* clang-format on */
namespace Freestyle {
diff --git a/source/blender/freestyle/intern/view_map/ViewMapAdvancedIterators.h b/source/blender/freestyle/intern/view_map/ViewMapAdvancedIterators.h
index 525073af919..2ff46e353f3 100644
--- a/source/blender/freestyle/intern/view_map/ViewMapAdvancedIterators.h
+++ b/source/blender/freestyle/intern/view_map/ViewMapAdvancedIterators.h
@@ -24,6 +24,7 @@
*/
#include "ViewMap.h"
+#include "ViewMapIterators.h"
#include "../system/Iterator.h" //soc
diff --git a/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp b/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp
index 681237399a8..40ab3ada777 100644
--- a/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp
+++ b/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp
@@ -19,11 +19,10 @@
* \brief Class to build silhouette edges from a Winged-Edge structure
*/
-/* clang-format off */
#include <algorithm>
#include <memory>
-#include <stdexcept>
#include <sstream>
+#include <stdexcept>
#include "FRS_freestyle.h"
@@ -34,13 +33,12 @@
#include "SphericalGrid.h"
#include "ViewMapBuilder.h"
-#include "../geometry/GridHelpers.h"
#include "../geometry/GeomUtils.h"
+#include "../geometry/GridHelpers.h"
#include "../winged_edge/WFillGrid.h"
#include "BKE_global.h"
-/* clang-format on */
namespace Freestyle {
diff --git a/source/blender/freestyle/intern/view_map/ViewMapTesselator.h b/source/blender/freestyle/intern/view_map/ViewMapTesselator.h
index 33ef6858541..b6bf51618d8 100644
--- a/source/blender/freestyle/intern/view_map/ViewMapTesselator.h
+++ b/source/blender/freestyle/intern/view_map/ViewMapTesselator.h
@@ -22,13 +22,12 @@
* \brief Class to build a Node Tree designed to be displayed from a Silhouette View Map structure.
*/
-/* clang-format off */
#include "Silhouette.h"
#include "ViewMap.h"
#include "../scene_graph/LineRep.h"
-#include "../scene_graph/NodeShape.h"
#include "../scene_graph/NodeGroup.h"
+#include "../scene_graph/NodeShape.h"
#include "../scene_graph/OrientedLineRep.h"
#include "../scene_graph/VertexRep.h"
@@ -37,7 +36,6 @@
#ifdef WITH_CXX_GUARDEDALLOC
# include "MEM_guardedalloc.h"
#endif
-/* clang-format on */
namespace Freestyle {