Support inverse orientation of wires
This commit is contained in:
@ -534,7 +534,7 @@ class AreaNthSelector(_NthSelector):
|
||||
return obj.Area()
|
||||
elif isinstance(obj, Wire):
|
||||
try:
|
||||
return Face.makeFromWires(obj).Area()
|
||||
return abs(Face.makeFromWires(obj).Area())
|
||||
except Exception as ex:
|
||||
raise ValueError(
|
||||
f"Can not compute area of the Wire: {ex}. AreaNthSelector supports only closed planar Wires."
|
||||
|
Reference in New Issue
Block a user