/usr/lib/scilab-plotlib/macros/_getvalidchildren.sci is in scilab-plotlib 0.42-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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
|