---
# System prepended metadata

title: 2024/01/30

---

# 2024/01/30

## TODO 
實作Poly 找交點排序

流程實作
![image](https://hackmd.io/_uploads/rJRtfKL56.png)

- `Inter`, `Union`, `Cut` output a vector with vertices link
- SolveOrder() order the poly2D by info above

## One by One flow
1. Find max(cost with macros on chip) in unuse macros
2. Add result above into chip
3. Run ForceDirected
4. If can't place in, unlock position on pre added macro than goto `3.`
5. Lock position and morph on all macro than goto `2.` if still have unuse macro
6. End