| 802 | //-------------------------------------------------------------------- |
| 803 | template<class Trans> |
| 804 | void transform(const Trans& trans, unsigned path_id=0) |
| 805 | { |
| 806 | unsigned num_ver = m_vertices.total_vertices(); |
| 807 | for(; path_id < num_ver; path_id++) |
| 808 | { |
| 809 | double x, y; |
| 810 | unsigned cmd = m_vertices.vertex(path_id, &x, &y); |
| 811 | if(is_stop(cmd)) break; |
| 812 | if(is_vertex(cmd)) |
| 813 | { |
| 814 | trans.transform(&x, &y); |
| 815 | m_vertices.modify_vertex(path_id, x, y); |
| 816 | } |
| 817 | } |
| 818 | } |
| 819 | |
| 820 | //-------------------------------------------------------------------- |
| 821 | template<class Trans> |
no test coverage detected