FarseerPhysics.Common.PolygonTools.createPolygonFromTextureData C# (CSharp) Method

createPolygonFromTextureData() public static method

Detects the vertices by analyzing the texture data.
public static createPolygonFromTextureData ( uint data, int width, float hullTolerance, byte alphaTolerance, bool multiPartDetection, bool holeDetection ) : List
data uint The texture data.
width int The texture width.
hullTolerance float The hull tolerance.
alphaTolerance byte The alpha tolerance.
multiPartDetection bool if set to true it will perform multi part detection.
holeDetection bool if set to true it will perform hole detection.
return List
		public static List<Vertices> createPolygonFromTextureData( uint[] data, int width, float hullTolerance,
												   byte alphaTolerance, bool multiPartDetection, bool holeDetection )
		{
			return TextureConverter.detectVertices( data, width, hullTolerance, alphaTolerance,
												   multiPartDetection, holeDetection );
		}

Same methods

PolygonTools::createPolygonFromTextureData ( Nez subtexture ) : Vertices
PolygonTools::createPolygonFromTextureData ( Texture2D texture ) : Vertices
PolygonTools::createPolygonFromTextureData ( uint data, int width ) : Vertices
PolygonTools::createPolygonFromTextureData ( uint data, int width, bool holeDetection ) : Vertices