bugGNU Octave - Bugs: bug #63523, patch: case where invalid size of...

 
 

bug #63523: patch: case where invalid size of facevertexcdata is not caught

Submitter:  A.R. Burgers <arb>
Submitted:  Wed 14 Dec 2022 08:22:49 AM UTC
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Missed Error or Warning
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Fri 23 Dec 2022 01:52:55 PM UTC, comment #1: 

Confirmed.  The issue isn't in an m-file, but in the C++ code for patch objects which apparently does not have a test for this.

Rik <rik5>
Project Administrator
Wed 14 Dec 2022 08:22:49 AM UTC, original submission:  

Octave will run this example, and generate a plot:

np = 30;
p = rand(np, 3);
h = convhull(p);
nfaces = size(h, 1)
val = rand(nfaces + 1, 1);
patch('vertices', p, 'faces', h, 'facevertexcdata', val, 'facecolor', 'flat');
view(3);

where as matlab reports

Warning: Error creating or updating Patch
 Error in value of property  FaceVertexCData
 Number of colors must equal number of vertices or faces

A.R. Burgers <arb>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by arb (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 project members can vote.

     

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-23 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.10