6060
6161#include " FEFixMesh.h"
6262#include " Image.h"
63- #include " Libs/Optimize/Domain/MeshWrapper .h"
63+ #include " Libs/Optimize/Domain/Surface .h"
6464#include " Logging.h"
6565#include " MeshComputeThickness.h"
6666#include " MeshUtils.h"
@@ -785,8 +785,8 @@ double Mesh::geodesicDistance(int source, int target) const {
785785 throw std::invalid_argument (" requested point ids outside range of points available in mesh" );
786786 }
787787
788- MeshWrapper wrap (this ->poly_data_ , true );
789- return wrap. ComputeDistance (getPoint (source), -1 , getPoint (target), -1 );
788+ Surface surface (this ->poly_data_ , true );
789+ return surface. compute_distance (getPoint (source), -1 , getPoint (target), -1 );
790790}
791791
792792Field Mesh::geodesicDistance (const Point3 landmark) const {
@@ -795,10 +795,10 @@ Field Mesh::geodesicDistance(const Point3 landmark) const {
795795 distance->SetNumberOfTuples (numPoints ());
796796 distance->SetName (" GeodesicDistanceToLandmark" );
797797
798- MeshWrapper wrap (this ->poly_data_ , true );
798+ Surface surface (this ->poly_data_ , true );
799799
800800 for (int i = 0 ; i < numPoints (); i++) {
801- distance->SetValue (i, wrap. ComputeDistance (landmark, -1 , getPoint (i), -1 ));
801+ distance->SetValue (i, surface. compute_distance (landmark, -1 , getPoint (i), -1 ));
802802 }
803803
804804 return distance;
@@ -1767,7 +1767,7 @@ Eigen::Vector3d Mesh::getFFCGradient(Eigen::Vector3d query) const {
17671767 return grad;
17681768}
17691769
1770- // WARNING: Copied directly from Meshwrapper . TODO: When refactoring, take this into account.
1770+ // WARNING: Copied directly from Surface . TODO: When refactoring, take this into account.
17711771vtkSmartPointer<vtkPoints> Mesh::getIGLMesh (Eigen::MatrixXd& V, Eigen::MatrixXi& F) const {
17721772 const int n_verts = this ->poly_data_ ->GetNumberOfPoints ();
17731773 const int n_faces = this ->poly_data_ ->GetNumberOfCells ();
0 commit comments