From 1c4e2138ee4172fe161acfd20adc2e0af0033f9c Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 3 Sep 2011 12:23:37 +0000 Subject: [PATCH] cleanup --- Mesh/meshGFace.h | 19 ++++++++++--------- utils/api_demos/CMakeLists.txt | 5 ++++- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/Mesh/meshGFace.h b/Mesh/meshGFace.h index 4619dbe766..62fa4a61d0 100644 --- a/Mesh/meshGFace.h +++ b/Mesh/meshGFace.h @@ -8,8 +8,9 @@ #include <vector> #include <set> -#include "GFaceCompound.h" +#include <list> +class GEdge; class GFace; class MVertex; class GFaceCompound; @@ -20,19 +21,19 @@ class meshGFace { int twoPassesMesh; bool onlyInitialMesh; public : - meshGFace (bool r = true, int t = 0) : repairSelfIntersecting1dMesh(r), twoPassesMesh(t) - ,onlyInitialMesh(false) + meshGFace(bool r = true, int t = 0) + : repairSelfIntersecting1dMesh(r), twoPassesMesh(t), onlyInitialMesh(false) { } - void operator () (GFace *); - void setOnlyInitial() {onlyInitialMesh = true;} + void operator()(GFace *); + void setOnlyInitial(){ onlyInitialMesh = true; } }; // Destroy the mesh of the face class deMeshGFace { public : - deMeshGFace (){} - void operator () (GFace *); + deMeshGFace(){} + void operator()(GFace *); }; // Orient the mesh of a face to match the orientation of the @@ -42,8 +43,8 @@ class deMeshGFace { // 2) some volume algorithms need to change the surface mesh // orientation class orientMeshGFace { - public : - void operator () (GFace *); + public : + void operator()(GFace *); }; void fourthPoint(double *p1, double *p2, double *p3, double *p4); diff --git a/utils/api_demos/CMakeLists.txt b/utils/api_demos/CMakeLists.txt index 15193579eb..ff246526e7 100644 --- a/utils/api_demos/CMakeLists.txt +++ b/utils/api_demos/CMakeLists.txt @@ -14,7 +14,7 @@ project(api_demos CXX) add_subdirectory(../.. "${CMAKE_CURRENT_BINARY_DIR}/gmsh") include_directories(../../Common ../../Numeric ../../Geo ../../Mesh - ../../Solver ../../Post ../../Plugin ../../Graphics + ../../Solver ../../Post ../../Plugin ../../Graphics ../../contrib/ANN/include ../../contrib/DiscreteIntegration ${GMSH_EXTERNAL_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR}/gmsh/Common) @@ -50,3 +50,6 @@ target_link_libraries(mainPost shared) add_executable(mainSimple mainSimple.cpp) target_link_libraries(mainSimple shared) + +add_executable(mainMoving mainMoving.cpp) +target_link_libraries(mainMoving shared) -- GitLab