From 9f49fb189ac06fc3cd01b3e4408ab76dd6c54d63 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 3 Jan 2006 15:29:49 +0000 Subject: [PATCH] Added ndim namespace to generic Matrix --- vcg/complex/trimesh/create/extended_marching_cubes.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vcg/complex/trimesh/create/extended_marching_cubes.h b/vcg/complex/trimesh/create/extended_marching_cubes.h index 70f5d1b1..57f26984 100644 --- a/vcg/complex/trimesh/create/extended_marching_cubes.h +++ b/vcg/complex/trimesh/create/extended_marching_cubes.h @@ -334,7 +334,7 @@ namespace vcg rank = (c > cos(_featureAngle) ? 2 : 3); // setup linear system (find intersection of tangent planes) - vcg::Matrix A((unsigned int) vertices_num, 3); + vcg::ndim::Matrix A((unsigned int) vertices_num, 3); double *b = new double[ vertices_num ]; for (i=0; i V(3, 3); + vcg::ndim::Matrix V(3, 3); double *w = new double[vertices_num]; - vcg::SingularValueDecomposition< vcg::Matrix >(A, w, V, 100); + vcg::SingularValueDecomposition< vcg::ndim::Matrix >(A, w, V, 100); // rank == 2 -> suppress smallest singular value if (rank == 2) @@ -369,7 +369,7 @@ namespace vcg // SVD backsubstitution -> least squares, least norm solution x double *x = new double[3]; - vcg::SingularValueBacksubstitution< vcg::Matrix >(A, w, V, x, b); + vcg::SingularValueBacksubstitution< vcg::ndim::Matrix >(A, w, V, x, b); // transform x to world coords CoordType point((ScalarType) x[0], (ScalarType) x[1], (ScalarType) x[2]);