Skip to content

Commit 511cc98

Browse files
committed
automatically flip brep if volume is negative
1 parent 168cd46 commit 511cc98

File tree

1 file changed

+2
-0
lines changed
  • src/compas_rhino/geometry/brep

1 file changed

+2
-0
lines changed

src/compas_rhino/geometry/brep/brep.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ def from_native(cls, rhino_brep):
392392
"""
393393
brep = cls()
394394
brep._brep = rhino_brep
395+
if brep.volume < 0:
396+
brep.flip()
395397
return brep
396398

397399
@classmethod

0 commit comments

Comments
 (0)