summaryrefslogtreecommitdiffstats
path: root/src/libs/lprof/cmshull.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/lprof/cmshull.cpp')
-rw-r--r--src/libs/lprof/cmshull.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/libs/lprof/cmshull.cpp b/src/libs/lprof/cmshull.cpp
index 05b8dfa3..fd82beea 100644
--- a/src/libs/lprof/cmshull.cpp
+++ b/src/libs/lprof/cmshull.cpp
@@ -41,10 +41,10 @@
LCMSHANDLE cdecl cmsxHullInit(void);
void cdecl cmsxHullDone(LCMSHANDLE hHull);
-BOOL cdecl cmsxHullAddPoint(LCMSHANDLE hHull, int x, int y, int z);
-BOOL cdecl cmsxHullComputeHull(LCMSHANDLE hHull);
+bool cdecl cmsxHullAddPoint(LCMSHANDLE hHull, int x, int y, int z);
+bool cdecl cmsxHullComputeHull(LCMSHANDLE hHull);
char cdecl cmsxHullCheckpoint(LCMSHANDLE hHull, int x, int y, int z);
-BOOL cdecl cmsxHullDumpVRML(LCMSHANDLE hHull, const char* fname);
+bool cdecl cmsxHullDumpVRML(LCMSHANDLE hHull, const char* fname);
/* --------------------------------------------------------------------- */
@@ -102,7 +102,7 @@ struct _edge_struct {
LPFACE AdjFace[2];
LPVERTEX EndPts[2];
LPFACE NewFace; /* pointer to incident cone face. */
- BOOL DoDelete; /* T iff Edge should be delete. */
+ bool DoDelete; /* T iff Edge should be delete. */
LPEDGE Next, Prev;
};
@@ -111,7 +111,7 @@ struct _face_struct {
LPEDGE Edge[3];
LPVERTEX Vertex[3];
- BOOL Visible; /* T iff face Visible from new point. */
+ bool Visible; /* T iff face Visible from new point. */
LPFACE Next, Prev;
};
@@ -121,8 +121,8 @@ struct _vertex_struct {
int v[3];
int vnum;
LPEDGE duplicate; /* pointer to incident cone Edge (or NULL) */
- BOOL onhull; /* T iff point on hull. */
- BOOL mark; /* T iff point already processed. */
+ bool onhull; /* T iff point on hull. */
+ bool mark; /* T iff point already processed. */
LPVERTEX Next, Prev;
};
@@ -271,7 +271,7 @@ Collinear checks to see if the three points given are collinear,
by checking to see if each element of the cross product is zero.
---------------------------------------------------------------------*/
static
-BOOL Collinear( LPVERTEX a, LPVERTEX b, LPVERTEX c )
+bool Collinear( LPVERTEX a, LPVERTEX b, LPVERTEX c )
{
return
( c->v[Z] - a->v[Z] ) * ( b->v[Y] - a->v[Y] ) -
@@ -565,12 +565,12 @@ are Visible, then the Edge is marked for deletion. If just one of the
adjacent faces is Visible then a new face is constructed.
---------------------------------------------------------------------*/
static
-BOOL AddOne(LPHULL hull, LPVERTEX p)
+bool AddOne(LPHULL hull, LPVERTEX p)
{
LPFACE f;
LPEDGE e, temp;
int vol;
- BOOL vis = false;
+ bool vis = false;
/* Mark faces Visible from p. */
@@ -634,7 +634,7 @@ BOOL AddOne(LPHULL hull, LPVERTEX p)
---------------------------------------------------------------------*/
static
-BOOL DoubleTriangle(LPHULL hull)
+bool DoubleTriangle(LPHULL hull)
{
LPVERTEX v0, v1, v2, v3;
LPFACE f0, f1 = NULL;
@@ -693,7 +693,7 @@ static
void ConstructHull(LPHULL hull)
{
LPVERTEX v, vnext;
- BOOL changed; /* T if addition changes hull; not used. */
+ bool changed; /* T if addition changes hull; not used. */
v = hull->vertices;
@@ -1308,7 +1308,7 @@ void cmsxHullDone(LCMSHANDLE hHull)
}
-BOOL cmsxHullAddPoint(LCMSHANDLE hHull, int x, int y, int z)
+bool cmsxHullAddPoint(LCMSHANDLE hHull, int x, int y, int z)
{
LPVERTEX v;
LPHULL hull = (LPHULL) (LPSTR) hHull;
@@ -1323,7 +1323,7 @@ BOOL cmsxHullAddPoint(LCMSHANDLE hHull, int x, int y, int z)
return true;
}
-BOOL cmsxHullComputeHull(LCMSHANDLE hHull)
+bool cmsxHullComputeHull(LCMSHANDLE hHull)
{
LPHULL hull = (LPHULL) (LPSTR) hHull;
@@ -1348,7 +1348,7 @@ char cmsxHullCheckpoint(LCMSHANDLE hHull, int x, int y, int z)
}
-BOOL cmsxHullDumpVRML(LCMSHANDLE hHull, const char* fname)
+bool cmsxHullDumpVRML(LCMSHANDLE hHull, const char* fname)
{
FILE* fp;
int i;