We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cbc7b6 commit 211d87aCopy full SHA for 211d87a
ladybug_geometry/geometry3d/face.py
@@ -778,6 +778,10 @@ def remove_colinear_vertices(self, tolerance):
778
at which point the vertex is considered colinear.
779
"""
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
786
if not self.has_holes: # we only need to evaluate one list of vertices
787
new_vertices = self._remove_colinear(
0 commit comments