octave-bug-tracker
[Top][All Lists]
Advanced

[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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]