Skip to content

Commit 404c0d7

Browse files
chriswmackeyChris Mackey
authored andcommitted
fix(face): Better fix for previous case
1 parent 211d87a commit 404c0d7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ladybug_geometry/geometry3d/face.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -777,12 +777,6 @@ def remove_colinear_vertices(self, tolerance):
777777
tolerance: The minimum distance between a vertex and the boundary segments
778778
at which point the vertex is considered colinear.
779779
"""
780-
if len(self.vertices) == 3:
781-
valid_pts = [pt for i, pt in enumerate(self.vertices)
782-
if not pt.is_equivalent(self.vertices[i - 1], tolerance)]
783-
assert len(valid_pts) == 3, 'There must be at least 3 vertices for ' \
784-
'a Face3D. Got {}'.format(len(valid_pts))
785-
return self
786780
if not self.has_holes: # we only need to evaluate one list of vertices
787781
new_vertices = self._remove_colinear(
788782
self._vertices, self.polygon2d, tolerance)

0 commit comments

Comments
 (0)