File tree 1 file changed +4
-0
lines changed
ladybug_geometry/geometry3d
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -490,6 +490,8 @@ def upper_left_counter_clockwise_vertices(self):
490
490
This is useful for getting the vertices of several faces aligned with the
491
491
same global geometry rules for export to engines like EnergyPlus.
492
492
"""
493
+ if self ._plane .n .z == 1 or self ._plane .n .z == - 1 : # no vertex is above another
494
+ return self .vertices
493
495
# get a 2d polygon in the face plane that has a positive Y axis.
494
496
if self ._plane .y .z < 0 :
495
497
ref_plane = self ._plane .rotate (self ._plane .n , math .pi , self ._plane .o )
@@ -511,6 +513,8 @@ def upper_left_counter_clockwise_vertices(self):
511
513
def upper_left_counter_clockwise_boundary (self ):
512
514
"""Get this face's boundary starting from the upper left and moving counterclockwise.
513
515
"""
516
+ if self ._plane .n .z == 1 or self ._plane .n .z == - 1 : # no vertex is above another
517
+ return self .boundary
514
518
# get a 2d polygon in the face plane that has a positive Y axis.
515
519
if self ._plane .y .z < 0 :
516
520
ref_plane = self ._plane .rotate (self ._plane .n , math .pi , self ._plane .o )
You can’t perform that action at this time.
0 commit comments