要做到这一点,使用相机的原点和原三角形三角形边分割成若干个子区域,然后检查如果地区符合规定的排序顺序(准备画家算法)。
To do that, use camera origin point and triangle edges to split original triangles into several sub-regions, then check if regions conform to established sort order (prepared for painter's algorithm).
有多少三角形?有四个三角形。
然后用三角形带取代三角形,从而减少索引数量。
Next, you reduce the number of indices by using triangle strips instead of triangles.
So it's trigonal because we have these three atoms that are bound to the central atom here, and if you picture it, it's actually shaped like a pyramid.
这里三角形是因为,我们有3个原子核中心原子成键,如果你画它,它就是金字塔形的。
The fact that the picture is a little prettier on the far right is testament to the fact that I'm sorting the left half, the left half, the left half, and that's why you get these little triangles, triangles, triangles, that then get merged together.
可以看到最右边的画面,变化很快,先对左半部分排序,然后再左半部分,这就是为什么会有这些小三角形,最后再将它们合并起来。
Need to get the base in. Second thing I want to do, I need to get the height, so I'm going to input a value for the height, also as a float, a floating point.
也就是输入底的值,第二件我想要做的,事情就是得到三角形的高,因此我会输入一个值作为三角形的高,同样也是一个浮点数。
应用推荐