bugGNU Octave - Bugs: bug #65361, patch and campos error


bug #65361: patch and campos error

Submitter:  Liang Tang <lt1234>
Submitted:  Sat 24 Feb 2024 10:31:13 PM UTC
Category:  Octave Function Severity:  2 - Minor
Priority:  3 - Low Item Group:  Unexpected Error or Warning
Status:  Confirmed Assigned to:  None
Originator Name:  lt1234 Open/Closed:  * Open
Release:  * 8.2.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Mon 26 Feb 2024 02:29:11 AM UTC, comment #3: 


There is one thing to note. 

I did replace patch with fill3, and there was no error with fill3.  That is the reason that the title specifically called out patch. 


Liang Tang <lt1234>
Mon 26 Feb 2024 02:15:12 AM UTC, comment #2: 

Confirmed.  I updated the Summary to correctly use the keyword "campos".  This is probably related to the fact that OpenGL uses single, rather than double, values for calculations.  As such, there is an easy workaround which is to increase the size of the small delta you are using.  Instead of 1e-12, try 1e-7. 

campos, campos(campos-1e-7); campos

Because there is a simple workaround, I'm lowering the Priority and Severity of this bug.

Rik <rik5>
Group administrator
Sat 24 Feb 2024 10:43:29 PM UTC, comment #1: 

Sorry for a typo.  The title should be campos.

Liang Tang <lt1234>
Sat 24 Feb 2024 10:31:13 PM UTC, original submission:  


I got an error for the example below. If the patch is replaced with a fill3, no error is issued. Thanks.   

P0=[6  3 -4
    0 -2 -4
    0 -6  6
    6 -6  3];

% with patch

figure; ax2=axes;
patch(ax2,P0(:,1), P0(:,2), P0(:,3), 'r');
hold on; xlabel('x'); ylabel('y'); 
campos, campos(campos-1e-12); campos
error: set: "cameraviewangle" must be finite
error: called from
    campos at line 104 column 8
% no patch, no error message

figure; ax2=axes;
fill3(ax2,P0(:,1), P0(:,2), P0(:,3), 'r');
hold on; xlabel('x'); ylabel('y'); 
campos, campos(campos-1e-12); campos

Liang Tang <lt1234>


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

Attach Files:

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 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.


    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-02-26 rik5 Priority5 - Normal 3 - Low
        StatusNone Confirmed
        Operating SystemMicrosoft Windows Any
        Summarypatch and compos error patch and campos error
    2024-02-26 rik5 Severity3 - Normal 2 - Minor

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code