LN_BsplineSurface:
It is better to use one-dimensional vector to hold the control points instead of nested vectors, for better performance.
It accelerates the memory access and reduces the possibility of CPU cache miss.
The expected layout:
$$\{u_0v_0, u_0v_1... u_0v_{n-1}, u_1v_0, u_1v_1... u_1v_{n-1}...u_{m-1}v_0, u_{m-1}v_1... u_{m-1}v_{n-1}\}$$
LN_BsplineSurface:
It is better to use one-dimensional vector to hold the control points instead of nested vectors, for better performance.
It accelerates the memory access and reduces the possibility of CPU cache miss.
The expected layout: