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 211d87a commit 404c0d7Copy full SHA for 404c0d7
ladybug_geometry/geometry3d/face.py
@@ -777,12 +777,6 @@ def remove_colinear_vertices(self, tolerance):
777
tolerance: The minimum distance between a vertex and the boundary segments
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(
788
self._vertices, self.polygon2d, tolerance)
0 commit comments