diff --git a/src/cpp/remesher/remesh_botsch.cpp b/src/cpp/remesher/remesh_botsch.cpp index 2263fb7e..e4cbf2af 100644 --- a/src/cpp/remesher/remesh_botsch.cpp +++ b/src/cpp/remesher/remesh_botsch.cpp @@ -42,7 +42,7 @@ void remesh_botsch(Eigen::MatrixXd & V,Eigen::MatrixXi & F, Eigen::VectorXd & ta void remesh_botsch(Eigen::MatrixXd & V,Eigen::MatrixXi & F, Eigen::VectorXd & target,int iters, Eigen::VectorXi & feature, bool project){ Eigen::MatrixXd VA; VA.resize(V.rows(), 1); - remesh_botsch(V,F,target,iters,feature,false,VA); + remesh_botsch(V,F,target,iters,feature,project,VA); } void remesh_botsch(Eigen::MatrixXd & V,Eigen::MatrixXi & F, Eigen::VectorXd & target,int iters, Eigen::VectorXi & feature){ diff --git a/src/gpytoolbox/remesh_botsch.py b/src/gpytoolbox/remesh_botsch.py index 26ae8ab5..4b6da9a6 100644 --- a/src/gpytoolbox/remesh_botsch.py +++ b/src/gpytoolbox/remesh_botsch.py @@ -68,7 +68,7 @@ def remesh_botsch(V, F, i=10, h=None, project=True, feature=np.array([], dtype=i if vertex_attrs is None: return_va = False - vertex_attrs = np.zeros((V.size(0), 1), dtype=np.float64) + vertex_attrs = np.zeros((V.shape[0], 1), dtype=np.float64) else: return_va = True