ON_Polyline one line constructor

Hi,

Is there a shorter way of initializing the ON_Polyline?

Currently I am constructing polyline from known points first as a point array, then appending them to ON_Polyline:

            ON_3dPoint rect[5] = { 
                polylinePairs[i][j], 
                polylinePairs[i][j + 1],
                polylinePairs[i + 1][j + 1],
                polylinePairs[i + 1][j],
                polylinePairs[i][j]
            };
        
            ON_Polyline side;
            side.Append(5, rect);

Is there a way to it in one line?
Pseudo code:

      ON_Polyline side = { polylinePairs[i][j], 
                polylinePairs[i][j + 1],
                polylinePairs[i + 1][j + 1],
                polylinePairs[i + 1][j],
                polylinePairs[i][j]};

No, sorry, not that I know of.

ā€“ Dale

1 Like

Thank you;)