faster mesh edge identification

fix for cylinder tunneling in soak
This commit is contained in:
Erin Catto 2026-11-02 14:05:15 -08:00
commit b2747eb2b8
9 changed files with 93 additions and 136 deletions

View file

@ -59,16 +59,6 @@ tjunction,0,1,capsule,0,2
tjunction,0,1,upright,0,2
tjunction,0,1,sphere,0,2
tjunction,0,1,cylinder,0,2
seam,0,0,box,0,2
seam,0,0,capsule,0,2
seam,0,0,upright,0,2
seam,0,0,sphere,0,2
seam,0,0,cylinder,2,2
seam,0,1,box,2,2
seam,0,1,capsule,0,2
seam,0,1,upright,0,2
seam,0,1,sphere,0,2
seam,0,1,cylinder,0,2
peel,0,0,box,0,2
peel,0,0,capsule,0,2
peel,0,0,upright,0,2

1 scene preset mirror body ghosts runs
59 tjunction 0 1 upright 0 2
60 tjunction 0 1 sphere 0 2
61 tjunction 0 1 cylinder 0 2
seam 0 0 box 0 2
seam 0 0 capsule 0 2
seam 0 0 upright 0 2
seam 0 0 sphere 0 2
seam 0 0 cylinder 2 2
seam 0 1 box 2 2
seam 0 1 capsule 0 2
seam 0 1 upright 0 2
seam 0 1 sphere 0 2
seam 0 1 cylinder 0 2
62 peel 0 0 box 0 2
63 peel 0 0 capsule 0 2
64 peel 0 0 upright 0 2

View file

@ -59,16 +59,6 @@ tjunction,0,1,capsule,0,2
tjunction,0,1,upright,0,2
tjunction,0,1,sphere,0,2
tjunction,0,1,cylinder,0,2
seam,0,0,box,0,2
seam,0,0,capsule,0,2
seam,0,0,upright,6,2
seam,0,0,sphere,0,2
seam,0,0,cylinder,3,2
seam,0,1,box,2,1
seam,0,1,capsule,0,2
seam,0,1,upright,0,2
seam,0,1,sphere,0,2
seam,0,1,cylinder,0,2
peel,0,0,box,0,2
peel,0,0,capsule,0,2
peel,0,0,upright,0,2

1 scene preset mirror body ghosts runs
59 tjunction 0 1 upright 0 2
60 tjunction 0 1 sphere 0 2
61 tjunction 0 1 cylinder 0 2
seam 0 0 box 0 2
seam 0 0 capsule 0 2
seam 0 0 upright 6 2
seam 0 0 sphere 0 2
seam 0 0 cylinder 3 2
seam 0 1 box 2 1
seam 0 1 capsule 0 2
seam 0 1 upright 0 2
seam 0 1 sphere 0 2
seam 0 1 cylinder 0 2
62 peel 0 0 box 0 2
63 peel 0 0 capsule 0 2
64 peel 0 0 upright 0 2

View file

@ -18,7 +18,7 @@
#include <string.h>
// Command line and result file keys
static const char* s_sceneKeys[e_ghostSceneCount] = { "flat", "ramp", "cliff", "crest", "bumps", "tjunction", "seam", "peel" };
static const char* s_sceneKeys[e_ghostSceneCount] = { "flat", "ramp", "cliff", "crest", "bumps", "tjunction", "peel" };
static const char* s_bodyKeys[e_ghostBodyCount] = { "box", "capsule", "upright", "sphere", "cylinder" };
#define MAX_CONFIGS 256
@ -270,7 +270,7 @@ int main( int argc, char** argv )
{
printf( "Usage: ghost_scan [options]\n"
"Runs the Ghost Collisions sample headless and counts ghost manifolds per scene and body.\n"
" -s, --scene=<key|all> flat, ramp, cliff, crest, bumps, tjunction, seam, peel (default all)\n"
" -s, --scene=<key|all> flat, ramp, cliff, crest, bumps, tjunction, peel (default all)\n"
" -b, --body=<key|all> box, capsule, upright, sphere, cylinder (default all)\n"
" -m, --mirror=<0|1|all> mirrored mesh (default all)\n"
" -p, --preset=<0-3|all> PEEL preset (default all)\n"

View file

@ -1,9 +1,9 @@
filter,base,generations,shape,tunnels,awake,depth4,depth8,depth16,depth32
all,12345,1000,box,0,0,1536,214,2,0
all,12345,1000,capsule,0,0,14474,3477,28,0
all,12345,1000,cylinder,0,0,11200,2338,36,0
all,12345,1000,box,0,0,1544,220,4,0
all,12345,1000,capsule,0,0,14505,3487,28,0
all,12345,1000,cylinder,0,0,11228,2355,37,0
all,12345,1000,sphere,0,0,56,0,0,0
all,12345,16000,box,0,0,23701,3164,43,0
all,12345,16000,capsule,0,0,231138,54408,513,0
all,12345,16000,cylinder,0,0,179066,37366,473,0
all,12345,16000,sphere,0,0,989,0,0,0
all,12345,16000,box,0,0,23648,3205,46,0
all,12345,16000,capsule,0,0,231483,54547,515,0
all,12345,16000,cylinder,0,0,179103,37448,485,0
all,12345,16000,sphere,0,0,987,0,0,0

1 filter base generations shape tunnels awake depth4 depth8 depth16 depth32
2 all 12345 1000 box 0 0 1536 1544 214 220 2 4 0
3 all 12345 1000 capsule 0 0 14474 14505 3477 3487 28 0
4 all 12345 1000 cylinder 0 0 11200 11228 2338 2355 36 37 0
5 all 12345 1000 sphere 0 0 56 0 0 0
6 all 12345 16000 box 0 0 23701 23648 3164 3205 43 46 0
7 all 12345 16000 capsule 0 0 231138 231483 54408 54547 513 515 0
8 all 12345 16000 cylinder 0 0 179066 179103 37366 37448 473 485 0
9 all 12345 16000 sphere 0 0 989 987 0 0 0