diff extra/nurbs/src/nrb_srf_basisfun__.cc @ 8034:93208857ec22 octave-forge

remove calls to deprecated array constructor
author cdf
date Mon, 18 Apr 2011 21:03:52 +0000
parents 23ff23c91d06
children 00ad2879fd6b
line wrap: on
line diff
--- a/extra/nurbs/src/nrb_srf_basisfun__.cc	Mon Apr 18 17:28:27 2011 +0000
+++ b/extra/nurbs/src/nrb_srf_basisfun__.cc	Mon Apr 18 21:03:52 2011 +0000
@@ -39,7 +39,7 @@
       octave_idx_type p = (nrb.contents("order")(0).vector_value())(0) - 1;    // p    = nrb.order(1) -1;
       octave_idx_type q = (nrb.contents("order")(0).vector_value())(1) - 1;    // q    = nrb.order(2) -1;
 
-      Array<idx_vector> idx(2, idx_vector(':')); 
+      Array<idx_vector> idx(dim_vector (2, 1), idx_vector(':')); 
       idx(0) = 0;
       const NDArray u(points.index (idx).squeeze ()); // u = points(1,:);
 
@@ -56,7 +56,7 @@
 
       const RowVector V(knots(1).row_vector_value ()); // V = nrb.knots{2};
       
-      Array<idx_vector> idx2(3, idx_vector(':')); idx2(0) = 3;
+      Array<idx_vector> idx2(dim_vector (3, 1), idx_vector(':')); idx2(0) = 3;
       NDArray w (coefs.index (idx2).squeeze ()); // w = squeeze(nrb.coefs(4,:,:));
       
       RowVector spu(u);