// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __AREAS_HXX__
-#define __AREAS_HXX__
+#pragma once
#include "PrimitiveType.hxx"
#include "Nodes.hxx"
const Nodes *nodes;
std::vector<mcIdType> areaIdByNodes;
};
-};
-
-#endif // __AREAS_HXX__
+}
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __AREASBUILDER_HXX__
-#define __AREASBUILDER_HXX__
+#pragma once
#include "Nodes.hxx"
#include "Areas.hxx"
size_t threshold = 5;
};
-};
-
-#endif // __AREASBUILDER_HXX__
\ No newline at end of file
+}
INSTALL(TARGETS shaperecogn EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${MEDCOUPLING_INSTALL_LIBS})
FILE(GLOB shaperecogn_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
-INSTALL(FILES ${shaperecogn_HEADERS_HXX} DESTINATION ${MEDCOUPLING_INSTALL_HEADERS})
# To allow usage as SWIG dependencies:
SET(shaperecogn_HEADERS_HXX PARENT_SCOPE)
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __MATHOPS_HXX__
-#define __MATHOPS_HXX__
+#pragma once
#include <vector>
#include <array>
static double computeVariance(std::vector<double> values);
static std::array<double, 6> computeBaseFromNormal(std::array<double, 3> normal);
};
-};
-
-#endif //__MATHOPS_HXX__
+}
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __NODES_HXX__
-#define __NODES_HXX__
+#pragma once
#include <vector>
#include "MEDCouplingUMesh.hxx"
std::vector<double> mainDirections;
std::vector<PrimitiveType> primitives;
};
-};
-
-#endif //__NODES_HXX__
+}
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __NODECURVATURECALCULATOR_HXX__
-#define __NODECURVATURECALCULATOR_HXX__
+#pragma once
#include <string>
#include <vector>
const MEDCouplingUMesh *mesh;
Nodes *nodes;
};
-};
-
-#endif //__NODECURVATURECALCULATOR_HXX__
\ No newline at end of file
+}
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __PRIMITIVETYPE_HXX__
-#define __PRIMITIVETYPE_HXX__
+#pragma once
#include <string>
namespace MEDCoupling
return typeInt;
};
};
-
-#endif // __PRIMITIVETYPE_HXX__
\ No newline at end of file
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __SHAPERECOGNMESH_HXX__
-#define __SHAPERECOGNMESH_HXX__
+#pragma once
#include <string>
MCAuto<MEDCouplingFieldDouble> axis;
MCAuto<MEDCouplingFieldDouble> apex;
};
-};
-
-#endif // __SHAPERECOGNMESH_HXX__
+}
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __SHAPERECOGNMESHBUILDER_HXX__
-#define __SHAPERECOGNMESHBUILDER_HXX__
+#pragma once
#include <string>
std::unique_ptr<Nodes> nodes;
std::unique_ptr<Areas> areas;
};
-};
-
-#endif // __SHAPERECOGNMESHBUILDER_HXX__
+}
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __SHAPERECOGNCONSTANTS_HXX__
-#define __SHAPERECOGNCONSTANTS_HXX__
+#pragma once
namespace MEDCoupling
{
// - Thresholds
constexpr int THRESHOLD_MIN_NB_NODES = 5;
constexpr int THRESHOLD_MAX_NB_AREAS = 500;
-};
-
-#endif //__SHAPERECOGNCONSTANTS_HXX__
\ No newline at end of file
+}
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __CONETEST_HXX__
-#define __CONETEST_HXX__
+#pragma once
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
std::unique_ptr<ShapeRecognMeshBuilder> srMesh;
const Areas *areas;
};
-};
-
-#endif // __CONETEST_HXX__
+}
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __CYLINDERTEST_HXX__
-#define __CYLINDERTEST_HXX__
-
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
std::unique_ptr< ShapeRecognMeshBuilder > srMesh;
const Areas *areas;
};
-};
-
-#endif // __CYLINDERTEST_HXX__
+}
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __MATHOPSTEST_HXX__
-#define __MATHOPSTEST_HXX__
+#pragma once
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
static void testComputeAngles();
static void testComputeBaseFromNormal();
};
-};
-
-#endif // __MATHOPSTEST_HXX__
+}
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __PLANETEST_HXX__
-#define __PLANETEST_HXX__
+#pragma once
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
std::unique_ptr<ShapeRecognMeshBuilder> srMesh;
const Areas *areas;
};
-};
-
-#endif // __PLANETEST_HXX__
+}
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __SPHERETEST_HXX__
-#define __SPHERETEST_HXX__
+#pragma once
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
std::unique_ptr<ShapeRecognMeshBuilder> srMesh;
const Areas *areas;
};
-};
-
-#endif // __SPHERETEST_HXX__
+}
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef __TORUSTEST_HXX__
-#define __TORUSTEST_HXX__
+#pragma once
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
std::unique_ptr< ShapeRecognMeshBuilder > srMesh;
const Areas *areas;
};
-};
-
-#endif // __TORUSTEST_HXX__
+}