File: _getvalidchildren.sci

package info (click to toggle)
scilab-plotlib 0.41-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,196 kB
  • sloc: xml: 3,308; makefile: 15
file content (21 lines) | stat: -rw-r--r-- 421 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function h=_getvalidchildren(A)
  h=[]
  for k=1:size(A,'*')
    a=A(k)
    select a.type
//    case "Fac3d" then
//      h=[a;h]
//    case "Segs" then
//      h=[a;h]
    case "Polyline" then
      h=[a;h]
     case 'Axes'
      ax=a.children
      h=[_getvalidchildren(ax($:-1:1));h]
    case 'Compound'
      for k=size(a.children,'*'):-1:1
	h=[_getvalidchildren(a.children(k));h]
      end
    end
  end
endfunction