标签:style blog http color io 使用 ar sp div
其生成过程为:
核心代码:
static void SierpinskiTriangle(const Vector3& v1, const Vector3& v2, const Vector3& v3, Vector3* pVertices) { Vector3 v12 = (v1 + v2)*0.5f; Vector3 v13 = (v1 + v3)*0.5f; Vector3 v23 = (v2 + v3)*0.5f; pVertices[0] = v1; pVertices[1] = v12; pVertices[2] = v13; pVertices[3] = v2; pVertices[4] = v23; pVertices[5] = v12; pVertices[6] = v3; pVertices[7] = v13; pVertices[8] = v23; }
软件下载地址:http://files.cnblogs.com/WhyEngine/Fractal.7z
标签:style blog http color io 使用 ar sp div
原文地址:http://www.cnblogs.com/WhyEngine/p/4020018.html