简体   繁体   English

如何使三角形根据方程式绘制3D抛物面?

[英]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? 我有等式y = x ^ 2 + z ^ 2,如何获得三角形以绘制抛物面? and I want to use WPF 3D to accomplish this. 我想使用WPF 3D来完成此任务。

Generate a 2D grid on the XZ plane, ranging between [-D,-D] and [+D,+D] (D can be anything, like 10). 在XZ平面上生成一个2D网格,范围在[-D,-D]和[+ D,+ D]之间(D可以是任何数字,例如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. 现在,在生成每个顶点V <x,z> ,只需生成V' <x,x^2+z^2,z>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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