]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Updated comment. 2387/head
authorLuca Heltai <luca.heltai@sissa.it>
Sun, 20 Mar 2016 23:17:23 +0000 (00:17 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Sun, 20 Mar 2016 23:17:23 +0000 (00:17 +0100)
source/grid/manifold.cc

index a27460aacbdfc9c2cf7601d1b52488f0033536ef..21c00e32dff8912e0ce4ac70732bbc169389008b 100644 (file)
@@ -105,9 +105,11 @@ normal_vector (const typename Triangulation<3, 3>::face_iterator &face,
   // Verify we have a valid vertex index
   AssertIndexRange(min_index, 4);
 
-  // now figure out which vertices are better to compute tangent vectors
-  // we split the cell in 4 quadrants, and use v1/v2 for the first quadrant
-  // (the one at the corner with vertex 0)
+  // Now figure out which vertices are better to compute tangent vectors
+  // we split the cell in 4 quadrants, and use the most orthogonal vertices
+  // to the closest vertex if we ar far from the center, othewise we use
+  // the two consecutive vertices, on the opposite side with respect to
+  // the face center.
   if ((p-face->center()).norm_square() < min_distance)
     {
       // we are close to the face center: pick two consecutive vertices,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.