pyBIMstab icon indicating copy to clipboard operation
pyBIMstab copied to clipboard

pyBIMstab Problem

Open yimumu1314 opened this issue 1 year ago • 0 comments

  • pyBIMstab version:v0.1.4
  • Python version:3.11.4
  • Operating System:Windows11

Description

When running the slices_Slices_example1.py example, the following error is reported, and whenever the Slices function is used, the error occurs, what causes it? I hope the author will reply in his spare time

What I Did

  slices = Slices(
             ^^^^^^^
  File "D:\app\Python\install\Lib\site-packages\pybimstab-0.1.4-py3.11.egg\pybimstab\slices.py", line 416, in __init__
    self.fitCircle()
  File "D:\app\Python\install\Lib\site-packages\pybimstab-0.1.4-py3.11.egg\pybimstab\slices.py", line 476, in fitCircle
    dist1, dist2 = intersections[0].x, intersections[-1].x
                   ~~~~~~~~~~~~~^^^
TypeError: 'MultiPoint' object is not subscriptable

yimumu1314 avatar Aug 27 '23 08:08 yimumu1314