stmcculloch / arc-overhang

A 3D printer slicing algorithm that lets you print 90° overhangs without support material.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MultiPolygon Handling

deckar01 opened this issue · comments

  ...
  File "arc-overhang/util.py", line 183, in create_arc
    if not coord in remaining_empty_space.exterior.coords:
AttributeError: 'MultiPolygon' object has no attribute 'exterior'
  ...
  File "arc-overhang/util.py", line 182, in create_arc
    for coord in crescent.exterior.coords:
AttributeError: 'MultiPolygon' object has no attribute 'exterior'

Yeah this issue is a bit tricky. I don't think multipolygons should even exist in the first place, so handling them might end up causing more errors than finding the root cause of their existence.

This seems to occur more frequently when N is low. Try setting N to 7 (to make hexagons instead of arcs) and you'll get some kind of error almost every time.