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: Guillaume
Subject: [Octave-bug-tracker] [bug #54970] Use of camlight when a patch is not visible
Date: Tue, 6 Nov 2018 11:35:39 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #2, bug #54970 (project octave):

Here is the output from Matlab:


>> P = patch  ('Vertices', vertices, 'Faces', faces, ...
        'FaceVertexCData', jet (5), 'FaceColor', 'interp', ...
        'Parent', A, 'Visible', 'off');
>>    
>> get (P, 'FaceNormals')

ans =

     []

>> L = camlight(A, 'headlight'); 
>> get (P, 'FaceNormals')

ans =

     []

>> set (P, 'Visible', 'on');
>> get (P, 'FaceNormals')

ans =

  4x3 single matrix

         0    0.8944   -0.4472
   -0.8944         0   -0.4472
         0   -0.8944   -0.4472
    0.8944         0   -0.4472



    _______________________________________________________

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]