Skip to content

Conversation

@izackp
Copy link

@izackp izackp commented Jul 17, 2015

void clip_infinite_edge(const vd_type::edge_type& edge, boost::polygon::rectangle_data<vd_type::coordinate_type> brect_, std::vectorboost::polygon::point_data<vd_type::coordinate_type>* clipped_edge);

^ Should be placed in the header file too.

This code should clip infinite edges. Tested with the mario image provided here:
#3

This just works.. but I'm not a c++ programmer, so this is probably not the best way to do it.

void clip_infinite_edge(const vd_type::edge_type& edge, boost::polygon::rectangle_data<vd_type::coordinate_type> brect_, std::vector<boost::polygon::point_data<vd_type::coordinate_type>>* clipped_edge);

^ Should be placed in the header file too.

This code should clip infinite edges. Tested with the mario image provided here:
cyang1#3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant