mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-19 11:28:00 +08:00
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:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user