Added warning to the faceInfo utils ---> this does not compute concave areas correctly.

This is an issue, and should be fixed in future versions.
This commit is contained in:
Rowan Cockett
2013-08-03 13:53:08 -07:00
parent 4887f4b130
commit 306e31ef04
+2 -2
View File
@@ -281,8 +281,8 @@ def faceInfo(xyz, A, B, C, D, average=True, normalizeNormals=True):
# Each triangle is one half of the length of the cross product
#
# So also could be viewed as the average parallelogram.
print nA, nB, nC, nD
print length(nA), length(nB), length(nC), length(nD)
#
# WARNING: This does not compute correctly for concave quadrilaterals
area = (length(nA)+length(nB)+length(nC)+length(nD))/4
return N, area