コード例 #1
0
ファイル: PolygonTools.cs プロジェクト: scastle/Solitude
 /// <summary>
 /// Detects the vertices by analyzing the texture data.
 /// </summary>
 /// <param name="data">The texture data.</param>
 /// <param name="width">The texture width.</param>
 /// <param name="height">The texture height.</param>
 /// <param name="hullTolerance">The hull tolerance.</param>
 /// <param name="alphaTolerance">The alpha tolerance.</param>
 /// <param name="multiPartDetection">if set to <c>true</c> it will perform multi part detection.</param>
 /// <param name="holeDetection">if set to <c>true</c> it will perform hole detection.</param>
 /// <returns></returns>
 public static List <Vertices> CreatePolygon(uint[] data, int width, int height, float hullTolerance,
                                             byte alphaTolerance, bool multiPartDetection, bool holeDetection)
 {
     return(TextureConverter.DetectVertices(data, width, height, hullTolerance, alphaTolerance,
                                            multiPartDetection, holeDetection));
 }
コード例 #2
0
ファイル: PolygonTools.cs プロジェクト: scastle/Solitude
 /// <summary>
 /// Detects the vertices by analyzing the texture data.
 /// </summary>
 /// <param name="data">The texture data.</param>
 /// <param name="width">The texture width.</param>
 /// <param name="height">The texture height.</param>
 /// <param name="holeDetection">if set to <c>true</c> it will perform hole detection.</param>
 /// <returns></returns>
 public static Vertices CreatePolygon(uint[] data, int width, int height, bool holeDetection)
 {
     return(TextureConverter.DetectVertices(data, width, height, holeDetection));
 }