The original equations assume the side length is 1. If you use those, then the vertices are 1.051463 away from the origin. If you divide all of the vertex coordinates by that number, then they will all be 1 away from the origin.

]]>Here are the combinations with repetitions

0 = [ none ] = 20

1 = [ I ] = 80

1 = [ II ] = 180

2 = [ I , I ] = 320

2 = [ I , II ] = 720 ( also equals to II , I )

3 = [ I , I , I ] = 1,280

3 = [ I , I , II ] = 2,880 ( == II , I , I == I , II , I )

4 = [ I , I , I , I ] = 5,120

3 = [ I , II , II ] = 6,480

4 = [ I , I , I , II ] = 11,520

3 = [ II , II , II ] = 14,580

5 = [ I , I , I , I , I ] = 20,480

4 = [ I , I , II , II ] = 25,920

5 = [ I , I , I , I , II ] = 46,080

4 = [ I , II , II , II ] = 58,320

6 = [ I , I , I , I , I , I ] = 81,920

5 = [ I , I , I , II , II ] = 103,680

4 = [ II , II , II , II ] = 131,220

6 = [ I , I , I , I , I , II ] = 184,320

5 = [ I , I , II , II , II ] = 233,280

… ?

7 = [ I , I , I , I , I , I , I ] = 327,680

… ?

Multiplication sequence between the faces counts

4 , 2 + 1/4 , 1 + 7/9 , 2 + 1/4 , 1 + 7/9 , …

But when i use function of the DLL in excel VBA I get the error “runtime 429 can’t create object ….”

This in another PC, if I use dll in PC where I have compiled that work

]]>If t < 0 or t > 1, then the closest point is on the line containing the segment but not on the segment itself. This last case when 0 ≤ t ≤ 1 occurs when the closest point is on the segment.

]]>the condition t>0 and t<0. I do not know why it is deleted when I post it

]]>I am wondering that what is the case for this

else { closest = new PointF(p1.X + t * dx, p1.Y + t * dy); dx = pt.X - closest.X; dy = pt.Y - closest.Y; }

because we have the condition t0 which is covered all the cases

]]>I think you can get that effect by using two checked list boxes with MultiColumn set to true.

]]>