How to build surface using QuadraticBezierCurve3

I’m trying to render a surface using QuadraticBezierCurve3 which right now able to render a shape which lie on same z coordinates but when I try to change the position of z axis the curve won’t shift to that particular z axis.

Here, I’m rendering a surface using length of 3 array points which are alike

  1. 0: (4) [Array(3), Array(3), Array(3), Array(3)]
  2. 1: (4) [Array(3), Array(3), Array(3), Array(3)]
  3. 2: (4) [Array(3), Array(3), Array(3), Array(3)]
  4. 3: (4) [Array(3), Array(3), Array(3), Array(3)]
    where I using 3 array of every array as [start, control , NUN, end]

displayResult

the z index is not working,
Please provide the solution for that…