File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,14 @@ namespace diffCheck::geometry
155155 DIFFCHECK_INFO (" Default estimation of normals with knn = 30" );
156156 }
157157 for (auto &normal : O3DPointCloud->normals_ )
158+ {
159+ if (normal.z () < -0.8 )
160+ {
161+ normal = -normal;
162+ }
158163 this ->Normals .push_back (normal);
164+ }
165+
159166 }
160167 else
161168 {
@@ -165,7 +172,13 @@ namespace diffCheck::geometry
165172
166173 this ->Normals .clear ();
167174 for (int i = 0 ; i < cilantroPointCloud->normals .cols (); i++)
175+ {
176+ if (cilantroPointCloud->normals .col (i).z () < -0.8 )
177+ {
178+ cilantroPointCloud->normals .col (i) = -cilantroPointCloud->normals .col (i);
179+ }
168180 this ->Normals .push_back (cilantroPointCloud->normals .col (i).cast <double >());
181+ }
169182 DIFFCHECK_INFO ((" Estimating normals with cilantro evaluator with knn = " + std::to_string (knn.value ())).c_str ());
170183 }
171184
You can’t perform that action at this time.
0 commit comments