From ed43066c344ba5abdf6b7df18bcfc7b33b83a142 Mon Sep 17 00:00:00 2001 From: "Gregory J. Ward" Date: Tue, 14 Jul 2020 23:13:50 +0000 Subject: [PATCH] fix(mesh): reverted previous change (2.30) to better accommodate dense meshes --- src/common/mesh.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/mesh.c b/src/common/mesh.c index c443cda95..7ee205653 100644 --- a/src/common/mesh.c +++ b/src/common/mesh.c @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: mesh.c,v 2.33 2020/04/04 04:34:08 greg Exp $"; +static const char RCSid[] = "$Id: mesh.c,v 2.34 2020/07/14 23:13:50 greg Exp $"; #endif /* * Mesh support routines @@ -509,9 +509,9 @@ addmeshtri( /* add a new mesh triangle */ } /* double link */ pp = &mp->patch[pn[i=0]]; - if (pp->nj2tris >= 256) + if (mp->patch[pn[1]].nj2tris < pp->nj2tris) pp = &mp->patch[pn[i=1]]; - if (pp->nj2tris >= 256) + if (mp->patch[pn[2]].nj2tris < pp->nj2tris) pp = &mp->patch[pn[i=2]]; if (pp->nj2tris >= 256) error(INTERNAL, "too many patch triangles in addmeshtri");