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

 
 

bug #65091: [octave forge] (nurbs) nrbderiv outputs nurbs with zero weight.

Submitter:  Liang Tang <lt1234>
Submitted:  Thu 28 Dec 2023 10:40:19 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  lt1234 Open/Closed:  * Open
Release:  * 8.2.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 28 Dec 2023 10:40:19 PM UTC, original submission:  

nrbderiv resets the nurbs weight to zero in build-in bspderiv. nrbkntplot would not plot a nurbs with zero weights. Please see the attached ofig.  Thanks. 

pkg load nurbs
Q=[0, 0; 3,4;-1,4;-4,0;-4,-3]
p=3; % cubic
%
P=[0        0; ...
   7.3170   3.6868; ...
  -2.9581   6.6783; ...
  -4.4950  -0.6737; ...
  -4.0000  -3.0000];
U=[0        0        0        0   0.5490   1.0000   1.0000   1.0000   1.0000];
nurbs   = nrbmak(cp=P',knots=U);
nurbs_d = nrbderiv (nurbs);nurbs_d.coefs  % zero weight

figure('name', 'nrbderiv weight=0');
 
subplot(1,2,1); % no plot
nrbkntplot(nurbs_d);  

subplot(1,2,2); % plot
nurbs_d.coefs(4,:)=[1 1 1 1];
nrbkntplot(nurbs_d);

Liang Tang <lt1234>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #55486:  nrbkntplot.ofig added by lt1234 (91KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lt1234 (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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-12-28 lt1234 Attached File- Added nrbkntplot.ofig, #55486

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code