Ondsel-Development / FreeCAD

This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler.
https://www.freecad.org
Other
192 stars 8 forks source link

SheetMetal: Make Relief fails with index out of range #65

Open andreymrt opened 5 months ago

andreymrt commented 5 months ago

Is there an existing issue for this?

Problem description

Answering the call for bug reports:

  1. Create 2 bends on neighboring edges
  2. Select common vertex of the two edges
  3. Click "Make Relief"
  4. Watch error log

https://github.com/Ondsel-Development/FreeCAD/assets/1222366/a53436a7-5763-4c6e-803c-6ff0cac71154

11:17:41  pyException: Traceback (most recent call last):
  File "C:\Users\Andrey\Downloads\circuit\Ondsel_ES_2024.2.1.37226-Windows-x86_64\Mod\sheetmetal\.\SheetMetalRelief.py", line 129, in execute
    s = smRelief(relief = fp.relief.Value, selVertexNames = fp.baseObject[1], MainObject = Main_Object)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Andrey\Downloads\circuit\Ondsel_ES_2024.2.1.37226-Windows-x86_64\Mod\sheetmetal\.\SheetMetalRelief.py", line 98, in smRelief
    extface = smMakeFace(vertex, face, edgelist, relief)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Andrey\Downloads\circuit\Ondsel_ES_2024.2.1.37226-Windows-x86_64\Mod\sheetmetal\.\SheetMetalRelief.py", line 79, in smMakeFace
    p4 = section.Vertexes[0].Point
         ~~~~~~~~~~~~~~~~^^^
<class 'IndexError'>: list index out of range
11:17:41  Relief: list index out of range

Full version info

OS: Windows 10 build 19045
Word size of Ondsel: 64-bit
Version: 2024.2.1.37226 (Git)
Build type: Release
Branch: (HEAD detached at 2024.2.1)
Hash: 1a1bd7290494aef925a026c87b808ac58d53c3b0
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: English/United States (en_US)
Installed mods: 
  * Ondsel-Lens 2024.5.6.01

Subproject(s) affected?

Other (specify in description)

Anything else?

No response

Code of Conduct