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:11:35 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

URL:
  <https://savannah.gnu.org/bugs/?54970>

                 Summary: Use of camlight when a patch is not visible
                 Project: GNU Octave
            Submitted by: gyom
            Submitted on: Tue 06 Nov 2018 04:11:34 PM UTC
                Category: Plotting with OpenGL
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Guillaume
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

If camlight is called while a patch is not visible, it does not seem to be
effective when the patch is set to visible. To see this effect, run the
following twice, setting the "visible" property of the patch "on" or "off".


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"); # change here to "on"
    
L = camlight(A, "headlight"); 
set(P,"Visible","on");





    _______________________________________________________

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]