[Nel] Landscapes without 3DSMax
Cyril 'Hulud' Corvazier
corvazier@nevrax.com
Wed, 19 Dec 2001 18:21:17 +0100
Hi Paul,
Forget all the ASCII parts of the 2 previous mail, here is the good way to
fill the CPatchInfo::CBindInfo structure :
---
We will assume all patches in this example are oriented like this
0 3
***
* *
***
1 2
---
The edge numbers are :
3
***
0 * * 2
***
1
---
There is 3 ways to bind patches together. (1-1, 1-2, 1-4)
---
One patch on another :
**********
* * *
* 0 * 1 *
* * *
**********
CBindInfo:
Patch 0, edge 2 : NPatchs = 1, Next = { Patch 1 }, Edge = { 0 }
Patch 1, edge 0 : NPatchs = 1, Next = { Patch 0 }, Edge = { 2 }
---
Two patches on another (Bind 2)
**********
* * 2 *
* 0 ******
* * 1 *
**********
Bind info:
Patch 0, edge 2 : NPatchs = 2, Next = { Patch 1, Patch 2 }, Edge = { 0,
0 }
Patch 1, edge 0 : NPatchs = 1, Next = { Patch 0 }, Edge = { 2 }
Patch 2, edge 0 : NPatchs = 1, Next = { Patch 0 }, Edge = { 2 }
---
4 patches on another (Bind 4)
**********
* * 4 *
* ******
* * 3 *
* 0 ******
* * 2 *
* ******
* * 1 *
**********
Patch 0, edge 2 : NPatchs = 4, Next = { Patch 1, Patch 2, Patch 3, Patch
4 }, Edge = { 0, 0, 0, 0 }
Patch 1, edge 0 : NPatchs = 1, Next = { Patch 0 }, Edge = { 2 }
Patch 2, edge 0 : NPatchs = 1, Next = { Patch 0 }, Edge = { 2 }
Patch 3, edge 0 : NPatchs = 1, Next = { Patch 0 }, Edge = { 2 }
Patch 4, edge 0 : NPatchs = 1, Next = { Patch 0 }, Edge = { 2 }
---
Sorry but i have been confused by the two classes called CPatch::CBindInfo
and CPatchInfo::CBindInfo. :-)
Cyril Corvazier.