#2 Skip irregular triangles

closed-accepted
nobody
None
5
2010-01-18
2010-01-15
Lars
No

Currently the toolpath generation crashes in pycam/Geometry/Triangle.py (function "calc_circumcircle"), if the currently processed triangle is irregular (three points in a line or two or three identical points) due to a division by zero (variable "denom").

These irregular triangles can be caused by a high-resolution STL model. E.g my model is around 1mm wide and contains 5000 triangles. This high resolutions leads to unintentionally identical points due to the tolerance defined in pycam/Geometry/PointKdtree.py (function "Point").

The attached patch skips any irregular triangle during import. Then toolpath generation works again.

Discussion

  • Lars

    Lars - 2010-01-15

    skip any irregular triangles during STL import

     
  • Lode Leroy

    Lode Leroy - 2010-01-18
    • status: open --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks