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:
authorCampbell Barton <campbell@blender.org>2022-09-25 08:14:13 +0300
committerCampbell Barton <campbell@blender.org>2022-09-25 08:34:32 +0300
commitc9e35c2ced92082c86f1ecb9ecd16c6230218c7c (patch)
tree24bd862961d2bbfa022cfc3c5262cfe1e63550b3 /source/blender/freestyle/intern/view_map
parent865894481ce76325d817533c654bda2ce2e65c66 (diff)
Cleanup: remove redundant double parenthesis
Diffstat (limited to 'source/blender/freestyle/intern/view_map')
-rw-r--r--source/blender/freestyle/intern/view_map/Functions0D.cpp6
-rw-r--r--source/blender/freestyle/intern/view_map/Silhouette.cpp2
-rw-r--r--source/blender/freestyle/intern/view_map/ViewEdgeXBuilder.cpp4
-rw-r--r--source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp8
4 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/freestyle/intern/view_map/Functions0D.cpp b/source/blender/freestyle/intern/view_map/Functions0D.cpp
index a461f368859..24625d39781 100644
--- a/source/blender/freestyle/intern/view_map/Functions0D.cpp
+++ b/source/blender/freestyle/intern/view_map/Functions0D.cpp
@@ -105,14 +105,14 @@ void getOccludersF0D(Interface0DIterator &it, set<ViewShape *> &oOccluders)
occluder_container::const_iterator oitend = ve1->occluders_end();
for (; oit != oitend; ++oit) {
- oOccluders.insert((*oit));
+ oOccluders.insert(*oit);
}
if (ve2 != nullptr) {
oit = ve2->occluders_begin();
oitend = ve2->occluders_end();
for (; oit != oitend; ++oit) {
- oOccluders.insert((*oit));
+ oOccluders.insert(*oit);
}
}
}
@@ -355,7 +355,7 @@ int GetOccludersF0D::operator()(Interface0DIterator &iter)
// vsOccluders.insert(vsOccluders.begin(), occluders.begin(), occluders.end());
for (set<ViewShape *>::iterator it = occluders.begin(), itend = occluders.end(); it != itend;
++it) {
- result.push_back((*it));
+ result.push_back(*it);
}
return 0;
}
diff --git a/source/blender/freestyle/intern/view_map/Silhouette.cpp b/source/blender/freestyle/intern/view_map/Silhouette.cpp
index 54e0626a7af..2398e82aca7 100644
--- a/source/blender/freestyle/intern/view_map/Silhouette.cpp
+++ b/source/blender/freestyle/intern/view_map/Silhouette.cpp
@@ -297,7 +297,7 @@ real FEdge::z_discontinuity() const
z_discontinuity_functor<SVertex> _functor;
Evaluate<SVertex, z_discontinuity_functor<SVertex>>(&_functor, iCombination, result);
#endif
- Vec3r middle((_VertexB->point3d() - _VertexA->point3d()));
+ Vec3r middle(_VertexB->point3d() - _VertexA->point3d());
middle /= 2;
Vec3r disc_vec(middle - _occludeeIntersection);
real res = disc_vec.norm() / bboxsize;
diff --git a/source/blender/freestyle/intern/view_map/ViewEdgeXBuilder.cpp b/source/blender/freestyle/intern/view_map/ViewEdgeXBuilder.cpp
index 81e7abf6d5c..798f01a9aa5 100644
--- a/source/blender/freestyle/intern/view_map/ViewEdgeXBuilder.cpp
+++ b/source/blender/freestyle/intern/view_map/ViewEdgeXBuilder.cpp
@@ -57,7 +57,7 @@ void ViewEdgeXBuilder::BuildViewEdges(WXShape *iWShape,
WXFace *wxf;
for (wf = wfaces.begin(), wfend = wfaces.end(); wf != wfend; wf++) {
wxf = dynamic_cast<WXFace *>(*wf);
- if (false == ((wxf))->hasSmoothEdges()) { // does it contain at least one smooth edge ?
+ if (false == (wxf)->hasSmoothEdges()) { // does it contain at least one smooth edge ?
continue;
}
// parse all smooth layers:
@@ -68,7 +68,7 @@ void ViewEdgeXBuilder::BuildViewEdges(WXShape *iWShape,
if (!(*sl)->hasSmoothEdge()) {
continue;
}
- if (stopSmoothViewEdge((*sl))) { // has it been parsed already ?
+ if (stopSmoothViewEdge(*sl)) { // has it been parsed already ?
continue;
}
// here we know that we're dealing with a face layer that has not been processed yet and that
diff --git a/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp b/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp
index 5642a80e77f..17447ced5e4 100644
--- a/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp
+++ b/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp
@@ -595,7 +595,7 @@ static void computeCumulativeVisibility(ViewMap *ioViewMap,
for (set<ViewShape *>::iterator o = foundOccluders.begin(), oend = foundOccluders.end();
o != oend;
++o) {
- (*ve)->AddOccluder((*o));
+ (*ve)->AddOccluder(*o);
}
#if LOGGING
if (_global.debug & G_DEBUG_FREESTYLE) {
@@ -786,7 +786,7 @@ static void computeDetailedVisibility(ViewMap *ioViewMap,
for (set<ViewShape *>::iterator o = foundOccluders.begin(), oend = foundOccluders.end();
o != oend;
++o) {
- (*ve)->AddOccluder((*o));
+ (*ve)->AddOccluder(*o);
}
#if LOGGING
if (_global.debug & G_DEBUG_FREESTYLE) {
@@ -925,7 +925,7 @@ static void computeFastVisibility(ViewMap *ioViewMap, G &grid, real epsilon)
for (set<ViewShape *>::iterator o = foundOccluders.begin(), oend = foundOccluders.end();
o != oend;
++o) {
- (*ve)->AddOccluder((*o));
+ (*ve)->AddOccluder(*o);
}
// occludee --
@@ -1658,7 +1658,7 @@ void ViewMapBuilder::ComputeRayCastingVisibility(ViewMap *ioViewMap, real epsilo
// occluders --
for (set<ViewShape *>::iterator o = occluders.begin(), oend = occluders.end(); o != oend;
++o) {
- (*ve)->AddOccluder((*o));
+ (*ve)->AddOccluder(*o);
}
#if LOGGING
if (_global.debug & G_DEBUG_FREESTYLE) {