[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not vi
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not visible |
Date: |
Tue, 6 Nov 2018 11:26:32 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0 |
Update of bug #54970 (project octave):
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #1:
@Markus: Adding you to the CC list for this bug. Apparently this is caused by
the fact that the "FaceNormals" aren't calculated when the patch object is
invisible.
@Guillaume: Can you try a modification of the code in Matlab?
H = figure;
A = axes('Parent',H);
vertices = [0, 0, 0;
1, 0, 0;
1, 1, 0;
0, 1, 0;
0.5, 0.5, 1];
faces = [1, 2, 5;
2, 3, 5;
3, 4, 5;
4, 1, 5];
P = patch ('Vertices', vertices, 'Faces', faces, ...
'FaceVertexCData', jet (5), 'FaceColor', 'interp', ...
'Parent', A, 'Visible', 'off');
get (P, 'FaceNormals')
L = camlight(A, 'headlight');
get (P, 'FaceNormals')
set (P, 'Visible', 'on');
get (P, 'FaceNormals')
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54970>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not visible, Guillaume, 2018/11/06
- [Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not visible,
Rik <=
- [Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not visible, Guillaume, 2018/11/06
- [Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not visible, Markus Mützel, 2018/11/08
- [Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not visible, Pantxo Diribarne, 2018/11/08
- [Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not visible, Rik, 2018/11/08
- [Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not visible, Markus Mützel, 2018/11/09
- [Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not visible, Rik, 2018/11/10
- [Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not visible, Guillaume, 2018/11/12
- [Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not visible, Markus Mützel, 2018/11/12
- [Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not visible, Guillaume, 2018/11/12
- [Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not visible, Markus Mützel, 2018/11/12