This might help… SurfaceSubDivision-20160901.dyn (8.3 KB)
This is a slightly optimized version of code from this discussion…