Skip to content

Commit 33ce23f

Browse files
Update src/compas_rhino/geometry/brep/face.py
Co-authored-by: Gonzalo Casas <gonzalocasas@gmail.com>
1 parent 6b3c7f9 commit 33ce23f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • src/compas_rhino/geometry/brep

src/compas_rhino/geometry/brep/face.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,7 @@ def is_point_on_face(self, u, v):
367367
True if the point is on the face (inside or on the boundary), False otherwise.
368368
"""
369369
relation = self._face.IsPointOnFace(u, v)
370-
if relation == Rhino.Geometry.PointFaceRelation.Interior:
371-
return True
372-
if relation == Rhino.Geometry.PointFaceRelation.Boundary:
370+
if relation in (Rhino.Geometry.PointFaceRelation.Interior, Rhino.Geometry.PointFaceRelation.Boundary):
373371
return True
374372
if relation == Rhino.Geometry.PointFaceRelation.Exterior:
375373
return False

0 commit comments

Comments
 (0)