We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25fa220 commit 81cc34dCopy full SHA for 81cc34d
cadquery/selectors.py
@@ -488,7 +488,7 @@ class AreaNthSelector(_NthSelector):
488
- closed planar Wires - a temporary face is created to compute area
489
490
Will ignore non-planar or non-closed wires.
491
-
+
492
Among other things can be used to select one of
493
the nested coplanar wires or faces.
494
@@ -534,7 +534,7 @@ def key(self, obj: Shape) -> float:
534
return obj.Area()
535
elif isinstance(obj, Wire):
536
try:
537
- return Face.makeFromWires(obj).Area()
+ return abs(Face.makeFromWires(obj).Area())
538
except Exception as ex:
539
raise ValueError(
540
f"Can not compute area of the Wire: {ex}. AreaNthSelector supports only closed planar Wires."
0 commit comments