Normal quotes
This commit is contained in:
parent
5e10794a24
commit
18011c595a
352 changed files with 6040 additions and 6040 deletions
20
60-03.md
20
60-03.md
|
|
@ -33,7 +33,7 @@
|
|||
static LINESEG *pCompiledLinesegs;
|
||||
// Builds a BSP tree from the specified line list. List must contain
|
||||
// at least one entry. If pCurrentTree is NULL, then this is the root
|
||||
// node, otherwise pCurrentTree is the tree that’s been build so far.
|
||||
// node, otherwise pCurrentTree is the tree that's been build so far.
|
||||
// Returns NULL for errors.
|
||||
LINESEG * SelectBSPTree(LINESEG * plineseghead,
|
||||
LINESEG * pCurrentTree, LINESEG ** pParentsChildPointer)
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
LINESEG *pcurrentline;
|
||||
double nx, ny, numer, denom, t;
|
||||
// Pick a line as the root, and remove it from the list of lines
|
||||
// to be categorized. The line we’ll select is the one of those in
|
||||
// to be categorized. The line we'll select is the one of those in
|
||||
// the list that splits the fewest of the other lines in the list
|
||||
minsplits = MAX_INT;
|
||||
prootline = plineseghead;
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
pvertexlist[prootline->endvertex].y;
|
||||
ny = -(pvertexlist[prootline->startvertex].x -
|
||||
pvertexlist[prootline->endvertex].x);
|
||||
// Calculate the dot products we’ll need for line
|
||||
// Calculate the dot products we'll need for line
|
||||
// intersection and spatial relationship
|
||||
numer = (nx * (pvertexlist[pcurrentline->startvertex].x -
|
||||
pvertexlist[prootline->startvertex].x)) +
|
||||
|
|
@ -102,7 +102,7 @@
|
|||
// appropriate
|
||||
pminsplit->pfronttree = NULL;
|
||||
pminsplit->pbacktree = NULL;
|
||||
// Point the parent’s child pointer to this node, so we can
|
||||
// Point the parent's child pointer to this node, so we can
|
||||
// track the currently-build tree
|
||||
*pParentsChildPointer = pminsplit;
|
||||
return BuildBSPTree(plineseghead, pminsplit, pCurrentTree);
|
||||
|
|
@ -119,9 +119,9 @@
|
|||
LINESEG *psplitline;
|
||||
double nx, ny, numer, denom, t;
|
||||
int Done;
|
||||
// Categorize all non-root lines as either in front of the root’s
|
||||
// infinite line, behind the root’s infinite line, or split by the
|
||||
// root’s infinite line, in which case we split it into two lines
|
||||
// Categorize all non-root lines as either in front of the root's
|
||||
// infinite line, behind the root's infinite line, or split by the
|
||||
// root's infinite line, in which case we split it into two lines
|
||||
pfrontlines = NULL;
|
||||
pbacklines = NULL;
|
||||
pcurrentline = plineseghead;
|
||||
|
|
@ -135,7 +135,7 @@
|
|||
pvertexlist[prootline->endvertex].y;
|
||||
ny = -(pvertexlist[prootline->startvertex].x -
|
||||
pvertexlist[prootline->endvertex].x);
|
||||
// Calculate the dot products we’ll need for line intersection
|
||||
// Calculate the dot products we'll need for line intersection
|
||||
// and spatial relationship
|
||||
numer = (nx * (pvertexlist[pcurrentline->startvertex].x -
|
||||
pvertexlist[prootline->startvertex].x)) +
|
||||
|
|
@ -174,8 +174,8 @@
|
|||
// The line segment must be split; add one split
|
||||
// segment to each list
|
||||
if (NumCompiledLinesegs > (MAX_NUM_LINESEGS - 1)) {
|
||||
DisplayMessageBox(“Out of space for line segs;”
|
||||
“increase MAX_NUM_LINESEGS”);
|
||||
DisplayMessageBox("Out of space for line segs;"
|
||||
"increase MAX_NUM_LINESEGS");
|
||||
return NULL;
|
||||
}
|
||||
// Make a new line entry for the split part of line
|
||||
|
|
|
|||
Loading…
Reference in a new issue