[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint wh
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the primary axes |
Date: |
Fri, 26 Apr 2024 15:51:18 -0400 (EDT) |
Update of bug #65641 (group octave):
Summary: 'view' produces incorrect viewpoint when given a
vector aligned with the X axis => 'view' produces incorrect viewpoint when
given a vector aligned with the primary axes
_______________________________________________________
Follow-up Comment #24:
the attached patch forces az = +0 when a z-axis vector is specified, and adds
a BIST to check for compatible output.
It's definitely not an elegant fix. I was worried about it being highly
discontinuous for slightly off-z-axis vectors, e.g, [-0.0001, 0, -1], but it
seems matlab is too, and this matches:
matlab:
>> view([-0.0001,0,-1]);[a,b]=view();[a,b,1/a,1/b]
ans =
-90.0000 -89.9943 -0.0111 -0.0111
>> view([-0.000,0,-1]);[a,b]=view();[a,b,1/a,1/b]
ans =
0 -90.0000 Inf -0.0111
patched octave
view([-0.0001,0,-1]);[a,b]=view();[a,b,1/a,1/b]
ans =
-9.0000e+01 -8.9994e+01 -1.1111e-02 -1.1112e-02
>> view([-0.000,0,-1]);[a,b]=view();[a,b,1/a,1/b]
ans =
0 -90.0000 Inf -0.0111
i think this would pretty much satisfy the bug report.
(file #55979)
_______________________________________________________
Additional Item Attachment:
File name: bug65641_zaxisfix.patch Size: 2KiB
<https://file.savannah.gnu.org/file/bug65641_zaxisfix.patch?file_id=55979>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-02a92bc3de37203138822bd2520e89ef55345685.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65641>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, (continued)
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Nicholas Jankowski, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Dmitri A. Sergatskov, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Arun Giridhar, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Arun Giridhar, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Arun Giridhar, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Nicholas Jankowski, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, John W. Eaton, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Nicholas Jankowski, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Nicholas Jankowski, 2024/04/26
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Nicholas Jankowski, 2024/04/26
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the primary axes,
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the primary axes, Markus Mützel, 2024/04/26
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the primary axes, Markus Mützel, 2024/04/26
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the primary axes, Nicholas Jankowski, 2024/04/26
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the primary axes, Nicholas Jankowski, 2024/04/26