Skip to content

Commit e6ace7e

Browse files
committed
added Brep.flip ()
1 parent 9548b6e commit e6ace7e

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010

1111
### Added
1212

13+
* Added `flip` to `compas.geometry.Brep`.
14+
* Added implementation of `flip` to `compas_rhino.geometry.RhinoBrep`.
15+
1316
### Changed
1417

1518
### Removed

src/compas/geometry/brep/brep.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,16 @@ def filleted(self, radius, edges=None):
10801080
"""
10811081
raise NotImplementedError
10821082

1083+
def flip(self):
1084+
"""Flip the orientation of all faces of the Brep.
1085+
1086+
Returns
1087+
-------
1088+
None
1089+
1090+
"""
1091+
raise NotImplementedError
1092+
10831093
def slice(self, plane):
10841094
"""Slice through the BRep with a plane.
10851095

src/compas_rhino/geometry/brep/brep.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,3 +664,13 @@ def filleted(self, radius, edges=None):
664664
if not resulting_breps:
665665
raise BrepFilletError("Fillet operation ended with no result")
666666
return RhinoBrep.from_native(resulting_breps[0])
667+
668+
def flip(self):
669+
"""Flip the orientation of all faces of the Brep.
670+
671+
Returns
672+
-------
673+
None
674+
675+
"""
676+
self._brep.Flip()

0 commit comments

Comments
 (0)