Menu

Triangulation code still WIP?

2022-02-27
2022-04-14
  • Phil Stopford

    Phil Stopford - 2022-02-27

    I was curious whether the triangulation / keyholing code was going to be progressed and eventually see C# form. The sandbox seems to not have this code any more, so I wanted to ask in case it had been dropped.

     
  • Angus Johnson

    Angus Johnson - 2022-02-27

    The triangulation code mostly works, and works well. But it crashes when under significant load, so it's not yet fit for inclusion in the library.

     

    Last edit: Angus Johnson 2022-02-28
  • Phil Stopford

    Phil Stopford - 2022-02-27

    Would you be persuaded to make the keyholing available, or is that dependent on the triangulation?

     
    • Angus Johnson

      Angus Johnson - 2022-02-28

      I'll email you the Delphi code.

       
  • Gorbin

    Gorbin - 2022-04-14

    Oh splendid - - I'd really like to look into that code, too.

    I'm also coding with c# (in Unity) ... so maybe Phil - if you have ported the sources already, I would be very grateful if you could share them with me ...

    I'm trying to implement a triangulation by myself for some time now...
    unfortunately without significant success

    I thought that I could just extend the existing method IntersectEdges(TEdge e1, TEdge e2, IntPoint pt) add a trapezoid consisting of these edges and the scanbeam.y to a list every time an edge ( is contributing to the solution ...
    Boy - was I naive :D

    There is a German proverb that describes my struggles quite good:

    I'm staring at the sources like a cow into a clockwork