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

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

[Octave-bug-tracker] [bug #57537] lighting exits with error when scatter


From: Hg200
Subject: [Octave-bug-tracker] [bug #57537] lighting exits with error when scatter combination is used
Date: Mon, 6 Jan 2020 11:30:14 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0

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

i think you can collect kids directly without collecting the parents (see
below). this removes one complete loop.

i have one question: why do we need the line "parents = kids(strcmp (types,
"axes"))"? i am not able to create an example returning a valid handle there.
can we assume this line always return arrays instead of cells?

++
  hlist = [];
  kids = get (hax, "children");
  while (! isempty (kids))
    types = get (kids, "type");
    hlist = [hlist; kids(strcmp(types, "patch"))];
    hlist = [hlist; kids(strcmp(types, "surface"))];
    parents = kids(strcmp (types, "axes"));
    hglist = kids(strcmp (types, "hggroup"));
    kids = get (parents, "children");
    for i = 1 : numel (hglist)
      props = get (hglist(i));
      if (! isfield (props, "levelstep"))
        tmp = get (hglist(i), "children");
        kids = [kids; tmp];
      endif
    endfor
  endwhile
--


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57537>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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