fixed edge normal orientation

This commit is contained in:
James E McClure 2018-09-14 16:39:54 -04:00
parent 6f5bfea671
commit 140b2f4cdf

View File

@ -371,7 +371,7 @@ double DECL::EdgeAngle(int edge)
V = TriNormal(halfedge.twin(edge));
if (halfedge.twin(edge) < 0 ){
// compute edge normal in plane of cube face
W = Q - P; // edge tangent vector
W = P - Q; // edge tangent vector
length = sqrt(W.x*W.x+W.y*W.y+W.z*W.z);
W.x /= length;
W.y /= length;