Skip to content

The selection of distance #16

@ProtossSine

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~

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions