Skip to content

The selection of distance #16

Description

@ProtossSine

Hi, Botffy
Thanks for your great job, it helps me a lot.
I have a question about the selection of distance when compare the priority of events. I saw you chose the distance between two points rather than the distance between the intersect point and the edge, which is described in the paper. Here is the change you made in one of your commit:

  •   ev = min(events, key=lambda event: event.distance)
    
  •   ev = min(events, key=lambda event: self.point.distance(event.intersection_point))
    

    I'm a bit of confused, Can you explain why you made this change?
    Thank you so much~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions