Skip to content
Snippets Groups Projects
Commit 8b77e1ec authored by Emilie Sauvage's avatar Emilie Sauvage
Browse files

Update on curvature algorithm

parent 885d2954
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
#include "GPoint.h" #include "GPoint.h"
#include "GmshDefines.h" #include "GmshDefines.h"
#include "JacobianBasis.h" #include "JacobianBasis.h"
#include "Curvature.h"
#if defined(HAVE_FLTK) #if defined(HAVE_FLTK)
#include "FlGui.h" #include "FlGui.h"
#endif #endif
...@@ -146,6 +147,7 @@ namespace std { ...@@ -146,6 +147,7 @@ namespace std {
%include "Generator.h" %include "Generator.h"
%include "GmshDefines.h" %include "GmshDefines.h"
%include "JacobianBasis.h" %include "JacobianBasis.h"
%include "Curvature.h"
#if defined(HAVE_FLTK) #if defined(HAVE_FLTK)
%include "FlGui.h" %include "FlGui.h"
#endif #endif
...@@ -38,6 +38,7 @@ set(SRC ...@@ -38,6 +38,7 @@ set(SRC
MHexahedron.cpp MPrism.cpp MPyramid.cpp MElementCut.cpp MHexahedron.cpp MPrism.cpp MPyramid.cpp MElementCut.cpp
MZone.cpp MZoneBoundary.cpp MZone.cpp MZoneBoundary.cpp
Cell.cpp CellComplex.cpp ChainComplex.cpp Homology.cpp Cell.cpp CellComplex.cpp ChainComplex.cpp Homology.cpp
Curvature.cpp
) )
file(GLOB HDR RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h) file(GLOB HDR RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h)
......
This diff is collapsed.
...@@ -82,6 +82,7 @@ private: ...@@ -82,6 +82,7 @@ private:
const SVector3 &new_norm, const SVector3 &new_norm,
SVector3 &pdir1, SVector3 &pdir2, double &k1, double &k2); SVector3 &pdir1, SVector3 &pdir2, double &k1, double &k2);
void computePointareas(); void computePointareas();
void computeRusinkiewiczNormals();
// Perform LDL^T decomposition of a symmetric positive definite matrix. // Perform LDL^T decomposition of a symmetric positive definite matrix.
// Like Cholesky, but no square roots. Overwrites lower triangle of matrix. // Like Cholesky, but no square roots. Overwrites lower triangle of matrix.
......
...@@ -26,7 +26,7 @@ print "Model is loaded" ...@@ -26,7 +26,7 @@ print "Model is loaded"
cv = Curvature(g) cv = Curvature(g)
cv.retrievePhysicalSurfaces("Wall") cv.retrievePhysicalSurfaces("Wall")
cv.computeCurvature() cv.computeCurvature_Rusinkiewicz()
cv.writeToFile("result.pos") cv.writeToFile("result.pos")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment