get complete list content, size of list
Hello,
I am trying to get the size of a list or the complete content. In this example of course I can use different ways, but in my particular case I need the size of the list.
I read in the manual in section 4.2.1 Floating point expressions:
expression-list-or-all: expression-list | :
so it should be possible from my unterstanding.
SetFactory("OpenCASCADE");
P1 = newp; Point(P1) = {1.0, 0.0, 0.0};
P2 = newp; Point(P2) = {0.0, 1.0, 0.0};
P3 = newp; Point(P3) = {0.0, 0.0, 1.0};
L1 = newl; Line(L1) = {P1, P2};
L2 = newl; Line(L2) = {P2, P3};
L3 = newl; Line(L3) = {P3, P1};
line_list = {
L1,
L2,
L3
};
LL1 = newll; Curve Loop(LL1) = {L1, L2, L3};
S1 = news; Surface(S1) = {LL1};
LL2 = newll; Curve Loop(LL2) = {line_list[{0:2}]};
S2 = news; Surface(S2) = {LL2};
LL3 = newll; Curve Loop(LL3) = {Line{:}};
S3 = news; Surface(S3) = {LL3};
LL4 = newll; Curve Loop(LL4) = {line_list[{:}]};
S4 = news; Surface(S4) = {LL4};