bugGNU Octave - Bugs: bug #63144, [matgeom] drawBox3d() throws an...

 
 

bug #63144: [matgeom] drawBox3d() throws an error when called as the example in the docunemt

Submitter:  Yu Hongbo <yuhongbo>
Submitted:  Sat 01 Oct 2022 03:39:06 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:  * 7.1.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 04 Oct 2022 06:22:10 PM UTC, comment #2: 

Confirmed on Octave-7.1.0 on Windows. However, when I try your code with Octave-7.2.0 and Octave-8.0.0 (dev Octave) I get an essentially empty figure with x- and y-axis limits [0.85 1.15], but no errors.
So:

  1. this has been fixed
  2. I'd suggest to simply upgrade your Octave installation.


Just like arungiridhar I see little use in specifying all box limits equal to 1 - was this just to reproduce the bug?

Philip Nienhuis <philipnienhuis>
Group Member
Mon 03 Oct 2022 05:27:23 PM UTC, comment #1: 

This looks like a user error, not a bug. The box limits in the published example are -1 <= x,y,z <= +1 so the limits are [-1 1 -1 1 -1 1] but your example changes that to +1 for everything, reducing the feasible region to a single point (1,1,1). But even in that case, I am able to get a cuboctahedron-like figure, just with the bounding box different from the published example.

Please verify your code and let us know.

Arun Giridhar <arungiridhar>
Group Member
Sat 01 Oct 2022 03:39:06 PM UTC, original submission:  

The document is at https://octave.sourceforge.io/matgeom/function/drawBox3d.html

Here is my code:

>> XMIN = XMAX = YMIN = YMAX = ZMIN = ZMAX = 1;
>> BOX = [XMIN XMAX YMIN YMAX ZMIN ZMAX];
>> drawBox3d(BOX);

error: validateattributes: function called with too many outputs
error: called from
    validateattributes
    drawBox3d>@<anonymous> at line 59 column 16
    validate_arg at line 546 column 11
    parse at line 410 column 9
    parseDrawInput at line 58 column 1
    drawBox3d at line 62 column 22

Yu Hongbo <yuhongbo>

 

(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 arungiridhar (Posted a comment)
  • -email is unavailable- added by yuhongbo (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
    2022-10-04 philipnienhuis StatusNeed Info Fixed
        Open/ClosedOpen Closed
    2022-10-03 arungiridhar StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code