0

I have the equation y= x^2 + z^2, how to get the triangles to draw the parabolic surface? and I want to use WPF 3D to accomplish this.

Liang
  • 867
  • 11
  • 13

1 Answers1

1

Generate a 2D grid on the XZ plane, ranging between [-D,-D] and [+D,+D] (D can be anything, like 10). You can write a nested loop to generate the triangles for this, I presume.

Now, while generating each vertex V <x,z>, simply generate V' <x,x^2+z^2,z> instead.

Rahul Banerjee
  • 2,343
  • 15
  • 16