equal
deleted
inserted
replaced
305 return pla[0]*plb[4] + pla[1]*plb[5] + pla[2]*plb[3] + pla[4]*plb[0] + pla[5]*plb[1] + pla[3]*plb[2]; |
305 return pla[0]*plb[4] + pla[1]*plb[5] + pla[2]*plb[3] + pla[4]*plb[0] + pla[5]*plb[1] + pla[3]*plb[2]; |
306 } |
306 } |
307 #endif |
307 #endif |
308 |
308 |
309 Triangle::Triangle(Vertex *aA, Vertex *aB, Vertex *aC, Material *amaterial) |
309 Triangle::Triangle(Vertex *aA, Vertex *aB, Vertex *aC, Material *amaterial) |
310 : smooth(false), A(aA), B(aB), C(aC) |
310 : A(aA), B(aB), C(aC) |
311 { |
311 { |
312 material = amaterial; |
312 material = amaterial; |
313 |
313 |
314 const Vector3 c = B->P - A->P; |
314 const Vector3 c = B->P - A->P; |
315 const Vector3 b = C->P - A->P; |
315 const Vector3 b = C->P - A->P; |