Geometry: Refacto and fix purge method.

This commit is contained in:
parouby committed 2025-09-08 11:26:42 +02:00
1 parent 76ce34c4ea
commit 7181122a3a
6 files changed
+55 -47

No files matched your search

+7 -2
View File
@@ -368,5 +368,10 @@ class PointXYZ(Point):
a = PointXYZ.distance(p1, p2)
b = PointXYZ.distance(p2, p3)
c = PointXYZ.distance(p3, p1)
s = (a + b + c) / 2
return (s*(s-a) * (s-b)*(s-c)) ** 0.5
s = float((a + b + c) / 2)
res = (
s * abs(s - a) * abs(s - b) * abs(s - c)
) ** 0.5
return res