bugGNU Octave - Bugs: bug #56810, [octave forge] (nurbs)...

 
 

bug #56810: [octave forge] (nurbs) nrbbasisfunder fails when called with 4 output arguments

Submitter:  Claudio Catterina <ccatterina>
Submitted:  Mon 26 Aug 2019 05:44:45 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 5.1.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 30 Mar 2021 07:10:13 AM UTC, comment #4: 

Closed as fixed with nurbs-1.4.3 (released today) by private request of package maintainer.

Kai Torben Ohlhus <siko1056>
Group Member
Mon 29 Mar 2021 10:09:02 AM UTC, comment #3: 

Fixed the silly typo.

Rafael Vazquez <rafavzqz>
Tue 27 Aug 2019 11:45:27 AM UTC, comment #2: 

Yeah, it seems to work properly with that change.

Claudio Catterina <ccatterina>
Tue 27 Aug 2019 10:49:08 AM UTC, comment #1: 

Yes, looks like a silly typo :-)

Have you tried if it works properly when changing
|| (nargout>3) ...
into
|| (nargout > 4) ...
?

cc'íng package maintainer

Philip Nienhuis <philipnienhuis>
Group Member
Mon 26 Aug 2019 05:44:45 PM UTC, original submission:  

As the function documentation says it should be possible to compute the basis functions derivatives with respect to the directions `u`, `v` and `w`:


%   [Bu, Bv, Bw, N] = nrbbasisfunder ({u, v, w}, vol)
%   [Bu, Bv, Bw, N] = nrbbasisfunder (pts, vol)


But due to the following check the function raise an error because nargout > 3:


  if (   (nargin<2) ...
      || (nargout>3) ...
      || (~isstruct(nrb)) ...
      || (iscell(points) && ~iscell(nrb.knots)) ...
      || (~iscell(points) && iscell(nrb.knots) && (size(points,1)~=numel(nrb.number))) ...
      || (~iscell(nrb.knots) && (nargout>2)) ...
      )
    error('Incorrect input arguments in nrbbasisfunder');
  end


Claudio Catterina <ccatterina>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by rafavzqz (Posted a comment)
  • -email is unavailable- added by philipnienhuis
  • -email is unavailable- added by ccatterina (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-30 siko1056 StatusNone Fixed
        Open/ClosedOpen Closed
    2019-08-27 philipnienhuis Carbon-Copy- Added cdf

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code