changeset 12654:3303edaec3e6 octave-forge

Fixed bug when the weight is not given
author rafavzqz
date Fri, 26 Jun 2015 15:46:42 +0000
parents 215c046e6504
children 70d4171ae21a
files extra/nurbs/inst/nrbmak.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/extra/nurbs/inst/nrbmak.m	Wed Jun 24 12:53:08 2015 +0000
+++ b/extra/nurbs/inst/nrbmak.m	Fri Jun 26 15:46:42 2015 +0000
@@ -125,7 +125,7 @@
    nurbs.number = np(2:4);
    if (dim < 4)
      nurbs.coefs = repmat([0.0 0.0 0.0 1.0]',[1 np(2:4)]);
-     nurbs.coefs(1:dim,:,:) = coefs;  
+     nurbs.coefs(1:dim,:,:,:) = coefs;  
    else
      nurbs.coefs = coefs;
    end