From 306e31ef047920db0747521a017420dc5461172a Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Sat, 3 Aug 2013 13:53:08 -0700 Subject: [PATCH] Added warning to the faceInfo utils ---> this does not compute concave areas correctly. This is an issue, and should be fixed in future versions. --- SimPEG/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SimPEG/utils.py b/SimPEG/utils.py index e92f81cb..0741b7bb 100644 --- a/SimPEG/utils.py +++ b/SimPEG/utils.py @@ -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