简体   繁体   中英

how to get the triangles to draw a parabolic surface in 3D according the equation?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM