Hi,
I have a character outline and a self made box outline,
I want to check collision between them with generating collision info like normal and penetration depth.
the problem is that on outline.collision an assert error is thrown, I've tracked it down and its on penetration depth calculation, it finds uneven points and crash the app when trying to get the line information that is out of vector range.

the box is calculated like so:
PHP Code:
CL_Contour contour;
contour.get_points().push_backCL_Pointf(150.0f,50.0f) );
contour.get_points().push_backCL_Pointf(150.0f,150.0f) );
contour.get_points().push_backCL_Pointf(300.0f,150.0f) );
contour.get_points().push_backCL_Pointf(300.0f,50.0f) );
outline.get_contours().push_back(contour);
outline.calculate_radius();
outline.calculate_sub_circles(); 
the charoutline is from a png file.
I'm also using set_aligment and set_translation for charoutline

Here is the source: ClanLibTest.rar