摘要:
normal: 三角面normal:v0,v1,v2三个顶点vN = normal((v1-v0)corss(v2-v1));叉乘的顺序决定了vN的z 定点normal: v1 = normalize(a-b); v2 = normalize(a-c); normalWeight = acos(dot(v1,v2)); normal = 0,0,0 totalWeight = 0 for:所有共定点的面的法线和 normal += trangleNormal * normalWeight; total... 阅读全文