Skip to content

Commit

Permalink
fix(face): Better fix for previous case
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Sep 9, 2022
1 parent 211d87a commit 404c0d7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ladybug_geometry/geometry3d/face.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,12 +777,6 @@ def remove_colinear_vertices(self, tolerance):
tolerance: The minimum distance between a vertex and the boundary segments
at which point the vertex is considered colinear.
"""
if len(self.vertices) == 3:
valid_pts = [pt for i, pt in enumerate(self.vertices)
if not pt.is_equivalent(self.vertices[i - 1], tolerance)]
assert len(valid_pts) == 3, 'There must be at least 3 vertices for ' \
'a Face3D. Got {}'.format(len(valid_pts))
return self
if not self.has_holes: # we only need to evaluate one list of vertices
new_vertices = self._remove_colinear(
self._vertices, self.polygon2d, tolerance)
Expand Down

0 comments on commit 404c0d7

Please sign in to comment.