[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #54922] demo surfl 1 fails

From: Rik
Subject: [Octave-bug-tracker] [bug #54922] demo surfl 1 fails
Date: Tue, 30 Oct 2018 14:59:11 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0


                 Summary: demo surfl 1 fails
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Tue 30 Oct 2018 11:59:10 AM PDT
                Category: Plotting with OpenGL
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux



I get an error when running the demos for surfl.  See session log below.

octave:1> demo surfl 1
surfl example 1:
 [X,Y,Z] = sombrero ();
 colormap (copper (64));
 surfl (X,Y,Z);
 shading interp;
 title ("surfl() with defaults");

surfl example 1: failed
vn(_,_,2): but vn has size 0x0

The problem is in surfl.m

    vn = get (htmp, "vertexnormals");
    dar = get (hax, "dataaspectratio");
    vn(:,:,1) *= dar(1);
--> vn(:,:,2) *= dar(2);
    vn(:,:,3) *= dar(3);

The issue is that vn is empty.  I went and checked with Octave 4.2.1 and
apparently there should be data there.


Reply to this item at:


  Message sent via Savannah

reply via email to

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