oh right, I see what's wrong now, yes, my previous suggestion was silly, a tool that reads the .cvh file, calculates the max distance, and then replaces the original radius with it's calculated value would be useful then perhaps?
where does one find information on the .cvh file format?
A slightly edited example cap03.cvh (a large number of lines removed)
Code: Select all
3.42824084 1.35787840 1.68161230 3.89524558 1.13622285
1
71 414 0.00000000 -0.01126250 -0.02403950
-0.09540500 -0.53637400 -3.34234500 5
60 1 3 39 38
0.00000000 -0.53637400 -3.38602100 8
58 60 62 0 2 36 37 38
0.09540500 -0.53637400 -3.34234500 5
1 62 33 40 36
-0.19081000 -0.53637400 -3.22044000 3
60 0 39
<snip>
wepemt
-0.0003259999 -1.2049859762 -0.3861339092
0.0000000000 1.0000000000 -0.0000005960
turwepemt1
0.0071899998 0.6275560260 -0.6033889651
0.0000000000 -0.9941724539 0.1078012586
cockpt
0.0000000000 0.7623199821 1.4784229994
0.0000000000 0.0000000000 1.0000000000
missemt
0.7883459926 -0.0049510002 0.4766269922
0.0000000000 1.0000000000 -0.0000006401
From inspection and this thread I think that:
Code: Select all
[dist to max vert from origin] [unknown 1] [unknown 2] [unknown 3] [unknown 4]
[1 seems to always be "1" in all .cvhs I've looked at]
[number of verts in cvh] [number of edges?] [unknown 5X] [unknown 5Y] [unknown 5Z]
-0.09540500 -0.53637400 -3.34234500 5 // vert X Y Z location followed by a number indicating how many other verts it is connected to
60 1 3 39 38 // the vert IDs that this vert is conected to, numbering is implicit from order in cvh file, above vert is #1, one below is #2
0.00000000 -0.53637400 -3.38602100 8
58 60 62 0 2 36 37 38
0.09540500 -0.53637400 -3.34234500 5
1 62 33 40 36
-0.19081000 -0.53637400 -3.22044000 3
60 0 39
<snip>
wepemt //obvious what this is
-0.0003259999 -1.2049859762 -0.3861339092 //origin / from X Y Z coord
0.0000000000 1.0000000000 -0.0000005960 //destination / to X Y Z coord
turwepemt1
0.0071899998 0.6275560260 -0.6033889651
0.0000000000 -0.9941724539 0.1078012586
cockpt
0.0000000000 0.7623199821 1.4784229994
0.0000000000 0.0000000000 1.0000000000
missemt
0.7883459926 -0.0049510002 0.4766269922
0.0000000000 1.0000000000 -0.0000006401