Aug 30, 2010 at 8:44 PM
Edited Aug 30, 2010 at 8:51 PM
I tried using this and a few similar methods and I got this same crash. The crash happens EVERY time that the number of vertices that FP3 calculates is greater than 8 (the MaxPolygonVertices number, because of the engine being set to call a non-named
Exception in that case. For me, no texture matters. I even went as simple as to go into paintbrush and paint the entire rectangle black and nothing else. It always detects between 14 and 17 vertices on an image, making the function never
The comments for the area in the code where it crashes don't make a bunch of sense, either.
Debug.Assert(2 <= vertices.Count && vertices.Count <= Settings.MaxPolygonVertices);
Another section of code in polygonTool.cs states:
//We need at least 8 vertices to create a rounded rectangle
Debug.Assert(Settings.MaxPolygonVertices >= 8);
As you can see, those two lines contradict each other. It gives me question as to why someone would even use some polygons such as the Ellipse since an 8-sided ellipse cannot come remotely CLOSE to the shape of an ellipse.
Perhaps there's a bug in the library here?
I gave up on trying to use texture to polygon because of the 8 vertex limit (and the fact that it ALWAYS detects between 14 and 17 vertexes on the series of images I tried)