Skip to content

Commit

Permalink
relog
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Mar 2, 2025
1 parent 9909dc4 commit 8e5dab3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/DotRecast.Recast/RcMeshDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,7 @@ public static void DelaunayHull(RcContext ctx, int npts, float[] pts, int nhull,
int t = i * 4;
if (tris[t + 0] == -1 || tris[t + 1] == -1 || tris[t + 2] == -1)
{
Console.Error.WriteLine("Dangling! " + tris[t] + " " + tris[t + 1] + " " + tris[t + 2]);
// ctx.Log(RC_LOG_WARNING, "delaunayHull: Removing dangling face %d [%d,%d,%d].", i, t.x,t.y,t.z);
Console.Error.WriteLine($"delaunayHull: Removing dangling face {i} [{tris[t]},{tris[t + 1]},{tris[t + 2]}]");
tris[t + 0] = tris[tris.Count - 4];
tris[t + 1] = tris[tris.Count - 3];
tris[t + 2] = tris[tris.Count - 2];
Expand Down Expand Up @@ -711,11 +710,11 @@ public static float GetJitterY(int i)
return (((i * 0xd8163841) & 0xffff) / 65535.0f * 2.0f) - 1.0f;
}

public static int BuildPolyDetail(RcContext ctx, float[] @in, int nin,
float sampleDist, float sampleMaxError,
int heightSearchRadius, RcCompactHeightfield chf,
RcHeightPatch hp, float[] verts,
ref List<int> tris, ref List<int> edges, ref List<int> samples)
public static int BuildPolyDetail(RcContext ctx, float[] @in, int nin,
float sampleDist, float sampleMaxError,
int heightSearchRadius, RcCompactHeightfield chf,
RcHeightPatch hp, float[] verts,
ref List<int> tris, ref List<int> edges, ref List<int> samples)
{
const int MAX_VERTS = 127;
const int MAX_TRIS = 255; // Max tris for delaunay is 2n-2-k (n=num verts, k=num hull verts).
Expand Down

0 comments on commit 8e5dab3

Please sign in to comment.