projects
/
ctsim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b4f2d26
)
r610: *** empty log message ***
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Mon, 5 Mar 2001 20:38:01 +0000
(20:38 +0000)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Mon, 5 Mar 2001 20:38:01 +0000
(20:38 +0000)
libctsupport/clip.cpp
patch
|
blob
|
history
diff --git
a/libctsupport/clip.cpp
b/libctsupport/clip.cpp
index 44d982d2dff62c801bfaf61374e3fcf5056d24fb..6df168412ad5e1138a519f7099143105ba8b6c4b 100644
(file)
--- a/
libctsupport/clip.cpp
+++ b/
libctsupport/clip.cpp
@@
-14,7
+14,7
@@
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: clip.cpp,v 1.
8 2001/01/27 21:02:20
kevin Exp $
+** $Id: clip.cpp,v 1.
9 2001/03/05 20:38:01
kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
@@
-250,9
+250,8
@@
clip_triangle (double& x1, double& y1, double& x2, double& y2, const double u, c
int c1 = tcode (x1, y1, m, b, clip_xaxis);
int c2 = tcode (x2, y2, m, b, clip_xaxis);
int c1 = tcode (x1, y1, m, b, clip_xaxis);
int c2 = tcode (x2, y2, m, b, clip_xaxis);
-#ifdef DEBUG
- printf ("x1:%6.2f y1:%6.2f code1:%2d x2:%6.2f y2:%6.2f code2:%2d\n",
- x1, y1, c1, x2, y2, c2);
+#if 0
+ printf ("x1:%6.2f y1:%6.2f code1:%2d x2:%6.2f y2:%6.2f code2:%2d\n", x1, y1, c1, x2, y2, c2);
#endif
while ( c1 || c2 ) {
if ( c1 & c2 ) {
#endif
while ( c1 || c2 ) {
if ( c1 & c2 ) {
@@
-292,7
+291,7
@@
clip_triangle (double& x1, double& y1, double& x2, double& y2, const double u, c
} else {
x2=x; y2=y; c2=tcode (x2,y2,m,b,clip_xaxis);
}
} else {
x2=x; y2=y; c2=tcode (x2,y2,m,b,clip_xaxis);
}
-#if
def DEBUG
+#if
0
printf ("x1:%6.2f y1:%6.2f code1:%2d x2:%6.2f y2:%6.2f code2:%2d\n", x1, y1, c1, x2, y2, c2);
#endif
}
printf ("x1:%6.2f y1:%6.2f code1:%2d x2:%6.2f y2:%6.2f code2:%2d\n", x1, y1, c1, x2, y2, c2);
#endif
}