Homec4science

Fix a rare error with is_low_angle

Authored by cwaechte on Dec 15 2020, 15:26.

Description

Fix a rare error with is_low_angle

Error message :


Traceback (most recent call last):

File "<string>", line 16, in Start

File "<string>", line 3, in BIMxBEM

File "D:\data\e4tech\customers\leso\lesosai\delphi\BIMxBEM\Freecad\Mod\BIMxBEM\freecad\bem\boundaries.py", line 917, in generate_bem_xml_from_file

  processing_sia_boundaries(doc)

File "D:\data\e4tech\customers\leso\lesosai\delphi\BIMxBEM\Freecad\Mod\BIMxBEM\freecad\bem\boundaries.py", line 56, in processing_sia_boundaries

  find_closest_edges(space)

File "D:\data\e4tech\customers\leso\lesosai\delphi\BIMxBEM\Freecad\Mod\BIMxBEM\freecad\bem\boundaries.py", line 650, in find_closest_edges

  find_closest_by_distance(boundary1, boundary2)

File "D:\data\e4tech\customers\leso\lesosai\delphi\BIMxBEM\Freecad\Mod\BIMxBEM\freecad\bem\boundaries.py", line 601, in find_closest_by_distance

  if not is_low_angle(edge1, edge2):

File "D:\data\e4tech\customers\leso\lesosai\delphi\BIMxBEM\Freecad\Mod\BIMxBEM\freecad\bem\boundaries.py", line 707, in is_low_angle

  dir2 = (edge2.Vertexes[1].Point - edge2.Vertexes[0].Point).normalize()

IndexError: list index out of range


Details

Committed
cwaechteDec 15 2020, 15:27
Pushed
cwaechteDec 21 2020, 16:32
Parents
R8831:78a91867974e: Rename material part for Constituent/ProfileSet
Branches
Unknown
Tags
Unknown