Răsfoiți Sursa

Adjust timing print out.

Former-commit-id: 2edae4104bc5e2f73a201ff8ee7a0c5227a8e476
Qingnan Zhou 9 ani în urmă
părinte
comite
948903ec32

+ 1 - 1
include/igl/copyleft/boolean/mesh_boolean.cpp

@@ -126,7 +126,7 @@ IGL_INLINE void igl::copyleft::boolean::mesh_boolean(
     assert(W.cols() == 4);
   }
 #ifdef MESH_BOOLEAN_TIMING
-  log_time("propergate_input_winding_number");
+  log_time("propagate_input_winding_number");
 #endif
 
   // Compute resulting winding number.

+ 1 - 4
include/igl/copyleft/cgal/propagate_winding_numbers.cpp

@@ -26,7 +26,7 @@
 #include <tuple>
 #include <queue>
 
-//#define PROPAGATE_WINDING_NUMBER_TIMING
+#define PROPAGATE_WINDING_NUMBER_TIMING
 
 namespace propagate_winding_numbers_helper {
   template<
@@ -106,9 +106,6 @@ IGL_INLINE void igl::copyleft::cgal::propagate_winding_numbers(
 
   Eigen::VectorXi P;
   const size_t num_patches = igl::extract_manifold_patches(F, EMAP, uE2E, P);
-#ifdef PROPAGATE_WINDING_NUMBER_TIMING
-  log_time("patch_extraction");
-#endif
 
   DerivedW per_patch_cells;
   const size_t num_cells =

+ 3 - 6
include/igl/copyleft/cgal/remesh_intersections.cpp

@@ -107,7 +107,7 @@ IGL_INLINE void igl::copyleft::cgal::remesh_intersections(
         }
     }
 #ifdef REMESH_INTERSECTIONS_TIMING
-    log_time("coplanar_analysis");
+    log_time("overlap_analysis");
 #endif
 
     std::vector<std::vector<Index> > resolved_faces;
@@ -276,9 +276,6 @@ IGL_INLINE void igl::copyleft::cgal::remesh_intersections(
             source_faces.push_back(i);
         }
     }
-#ifdef REMESH_INTERSECTIONS_TIMING
-    log_time("copy_untouched_faces");
-#endif
 
     // Process self-intersecting faces.
     std::vector<bool> processed(num_faces, false);
@@ -316,7 +313,7 @@ IGL_INLINE void igl::copyleft::cgal::remesh_intersections(
         cdt_inputs.emplace_back(P, involved_faces);
     }
 #ifdef REMESH_INTERSECTIONS_TIMING
-    log_time("prepare_cdt_input");
+    log_time("preprocess");
 #endif
 
     const size_t num_cdts = cdt_inputs.size();
@@ -345,7 +342,7 @@ IGL_INLINE void igl::copyleft::cgal::remesh_intersections(
         post_triangulation_process(vertices, faces, involved_faces);
     }
 #ifdef REMESH_INTERSECTIONS_TIMING
-    log_time("post_process");
+    log_time("stitching");
 #endif
 
     // Output resolved mesh.