From f3940adb81fbeaef74724209ada5910b02b06f87 Mon Sep 17 00:00:00 2001 From: KelianB Date: Fri, 8 Dec 2023 10:48:59 +0100 Subject: [PATCH] fixes --- src/cpp/remesher/remesh_botsch.cpp | 2 +- src/gpytoolbox/remesh_botsch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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