Why do 3D engines primarily use triangles to draw surfaces?

后端 未结 3 1979
鱼传尺愫
鱼传尺愫 2020-12-23 13:37

Why are triangles always used for drawing surfaces in 3D? Why not a square or some other shape?

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-23 14:12

    Basically any complex (surface) structure can be represented as a bunch of triangles. The triangle is the most atomic and primitive geometry. Hence it is used as base for almost anything. Nevertheless most 3D engines provide you with more complex primitives like spheres, cones, cylinders, donuts, whatnot. Check your libraries documentation.

提交回复
热议问题