File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
compas_rhino/geometry/brep Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
1010### Added
1111
12- * Added method ` frame_at ` to ` compas.geometry.BrepFace ` ,
13- * Added method ` frame_at ` to ` compas_rhino.geometry.RhinoBrepFace ` ,
12+ * Added method ` frame_at ` to ` compas.geometry.BrepFace ` .
13+ * Added method ` frame_at ` to ` compas_rhino.geometry.RhinoBrepFace ` .
14+ * Added property ` is_reversed ` to ` compas.geometry.BrepFace ` .
15+ * Added property ` is_reversed ` to ` compas_rhino.geometry.RhinoBrepFace ` .
1416
1517### Changed
1618
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ class BrepFace(Data):
4141 Returns True if this face is a sphere, False otherwise.
4242 is_torus : bool, read-only
4343 Returns True if this face is a torus, False otherwise.
44+ is_reversed : bool, read-only
45+ True if the orientation of this face is reversed, False otherwise.
4446 is_valid : bool, read-only
4547 Return True if this face is valid, False otherwise.
4648 loops : list[:class:`compas.geometry.BrepLoop`], read-only
@@ -119,6 +121,10 @@ def area(self):
119121 def centroid (self ):
120122 raise NotImplementedError
121123
124+ @property
125+ def is_reversed (self ):
126+ raise NotImplementedError
127+
122128 @property
123129 def is_valid (self ):
124130 raise NotImplementedError
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ class RhinoBrepFace(BrepFace):
4040 The list of loops which comprise the holes of this brep, if any.
4141 is_plane : float, read-only
4242 True if the geometry of this face is a plane, False otherwise.
43+ is_reversed : bool, read-only
44+ True if the orientation of this face is reversed, False otherwise.
4345 native_face : :class:`Rhino.Geometry.BrepFace`
4446 The underlying BrepFace object.
4547
@@ -152,6 +154,10 @@ def is_sphere(self):
152154 def is_torus (self ):
153155 return self ._face .UnderlyingSurface ().IsTorus ()
154156
157+ @property
158+ def is_reversed (self ):
159+ return self ._face .OrientationIsReversed
160+
155161 @property
156162 def native_face (self ):
157163 return self ._face
You can’t perform that action at this time.
0 commit comments