Convert figure images to markdown
This commit is contained in:
parent
307b59584f
commit
77a95ec319
115 changed files with 218 additions and 403 deletions
24
59-03.md
24
59-03.md
|
|
@ -18,8 +18,7 @@ valid choice for the initial split; we'll return to the issue of
|
|||
choosing splitting walls in the next chapter.) This splitting into front
|
||||
and back is the essential dualism of BSP trees.
|
||||
|
||||
\
|
||||
**Figure 59.3** *Initial split along the line of wall C.*
|
||||

|
||||
|
||||
Next, in Figure 59.4, the front subspace of wall C is split by wall D.
|
||||
This is the only wall in that subspace, so we're done with wall C's
|
||||
|
|
@ -30,13 +29,11 @@ There's a difference here, though: Wall A straddles the splitting line
|
|||
generated from wall B. Does wall A belong in the front or back subspace
|
||||
of wall B?
|
||||
|
||||
\
|
||||
**Figure 59.4** *Split of wall C's front subspace along the line of
|
||||
wall D.*
|
||||

|
||||
|
||||
\
|
||||
**Figure 59.5** *Split of wall C's back subspace along the line of
|
||||
wall B.*
|
||||

|
||||
|
||||
Both, actually. Wall A gets split into two pieces, which I'll call wall
|
||||
A and wall E; each piece is assigned to the appropriate subspace and
|
||||
|
|
@ -75,11 +72,9 @@ children is on the far side from the viewpoint, draw the wall, and then
|
|||
visit the node's nearer child, in that order. Visiting a child is
|
||||
recursive, involving the same far-near visiting order.
|
||||
|
||||
\
|
||||
**Figure 59.6** *The final BSP tree.*
|
||||

|
||||
|
||||
\
|
||||
**Figure 59.7** *Viewing the BSP tree from an arbitrary angle.*
|
||||

|
||||
|
||||
The key is that each BSP splitting line separates all the walls in the
|
||||
current subspace into two groups relative to the viewpoint, and every
|
||||
|
|
@ -88,9 +83,8 @@ single member of the nearer. By applying this ordering recursively, the
|
|||
BSP tree can be traversed to provide back-to-front or front-to-back
|
||||
ordering, with each node being visited only once.
|
||||
|
||||
\
|
||||
**Figure 59.8** *Back-to-front traversal of the BSP tree as viewed in
|
||||
Figure 59.7.*
|
||||

|
||||
|
||||
The type of tree walk used to produce front-to-back or back-to-front BSP
|
||||
traversal is known as an *inorder* walk. More on this very shortly;
|
||||
|
|
|
|||
Loading…
Reference in a new issue