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

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

[Octave-bug-tracker] [bug #42159] Inconsistent patch vertices/faces shou


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #42159] Inconsistent patch vertices/faces should lead to a warning
Date: Mon, 21 Apr 2014 18:22:37 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

URL:
  <http://savannah.gnu.org/bugs/?42159>

                 Summary: Inconsistent patch vertices/faces should lead to a
warning
                 Project: GNU Octave
            Submitted by: pantxo
            Submitted on: lun. 21 avril 2014 18:22:36 GMT
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

In octave :


t1 = (1/16:1/8:1)' * 2*pi;
t2 = ((1/16:1/8:1)' + 1/32) * 2*pi;
x1 = sin (t1) - 0.8;
y1 = cos (t1);
x2 = sin (t2) + 0.8;
y2 = cos (t2);
pa = patch ([x1,x2], [y1,y2], 'r');
set (pa, 'vertices', get (0, 'defaultpatchvertices'))

## error: setdata: A(I): index out of bounds; value 16 out of bound 3
## error: called from:
## error:  
/home/pantxo/media/dev/octavebuild/../octaveclone/scripts/plot/draw/private/__patch__.m
at line 262, column 5
## error: evaluating argument list element number 2
## error:  
/home/pantxo/media/dev/octavebuild/../octaveclone/scripts/plot/draw/private/__patch__.m
at line 362, column 7
## error:  
/home/pantxo/media/dev/octavebuild/../octaveclone/scripts/plot/draw/private/__patch__.m
at line 352, column 3


This is due to inconsistent vertices/faces properties. In Matlab it leads to a
warning "Warning: Values in patch Faces must be in [1 : rows(Vertices)] - not
rendering"

Contrary to all other base graphics objects, patch property updaters are
implemented using listeners. This bug has an easy fix, but it would probably
be more consistent to rewrite (translate) the listeners in the form of c++
updaters.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42159>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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