ShampooDeng / triangulate-rs-egui

Triangulation algorithm for simple polygon with GUI, a project for my computational geometry course.
Apache License 2.0
1 stars 1 forks source link

Polygon diagnoals cut polygon's outline during monotone partition. #11

Closed ShampooDeng closed 3 months ago

ShampooDeng commented 3 months ago
ShampooDeng commented 3 months ago

[2024-06-09T07:13:38Z DEBUG triangulate_rs::app] current cursor position:(157,543) [2024-06-09T07:13:38Z DEBUG triangulate_rs::app] Pushing point coordinate:(157,29) [2024-06-09T07:13:39Z DEBUG triangulate_rs::app] current cursor position:(308,400) [2024-06-09T07:13:39Z DEBUG triangulate_rs::app] Pushing point coordinate:(308,172) [2024-06-09T07:13:39Z DEBUG triangulate_rs::app] current cursor position:(481,523) [2024-06-09T07:13:39Z DEBUG triangulate_rs::app] Pushing point coordinate:(481,49) [2024-06-09T07:13:40Z DEBUG triangulate_rs::app] current cursor position:(624,399) [2024-06-09T07:13:40Z DEBUG triangulate_rs::app] Pushing point coordinate:(624,173) [2024-06-09T07:13:41Z DEBUG triangulate_rs::app] current cursor position:(500,223) [2024-06-09T07:13:41Z DEBUG triangulate_rs::app] Pushing point coordinate:(500,349) [2024-06-09T07:13:42Z DEBUG triangulate_rs::app] current cursor position:(378,336) [2024-06-09T07:13:42Z DEBUG triangulate_rs::app] Pushing point coordinate:(378,236) [2024-06-09T07:13:43Z DEBUG triangulate_rs::app] current cursor position:(185,239) [2024-06-09T07:13:43Z DEBUG triangulate_rs::app] Pushing point coordinate:(185,333) [2024-06-09T07:13:44Z DEBUG triangulate_rs::triangulate_2] vertex4 is start vertex [2024-06-09T07:13:44Z DEBUG triangulate_rs::triangulate_2] vertex6 is start vertex [2024-06-09T07:13:44Z DEBUG triangulate_rs::triangulate_2] vertex5 is merge vertex [2024-06-09T07:13:44Z DEBUG triangulate_rs::triangulate_2] vertex3 is regular vertex [2024-06-09T07:13:44Z DEBUG triangulate_rs::triangulate_2] interior is left to vertex3 [2024-06-09T07:13:44Z DEBUG triangulate_rs::triangulate_2] vertex1 is split vertex [2024-06-09T07:13:44Z DEBUG triangulate_rs::triangulate_2] vertex2 is end vertex [2024-06-09T07:13:44Z DEBUG triangulate_rs::triangulate_2] vertex0 is end vertex

ShampooDeng commented 3 months ago

fixed with 1e066a3e45b6ae0115135a545a0e25fd8a7845f7