On Mon, 29 Mar 2004, Daniel J Sebald wrote:
> That fixes things and is fine. However, v1_inside_p and v2_inside_p do
> have the feel of Boolean variables.
They're not, at least not really. classification[i] is a two-bit
variable, by design, and thus v1_inside_p is, too. It's used mostly like
a boolean later on, but that's a different story.
> probably shouldn't be. Also, doing the bit shift on the variable is
> extraneous.
It may be now, but I don't think it was when I introduced it. This
hidden3d stuff is seriously tricky, and it developed incrementally, so not
all of the stuff you see in there right now may make complete sense.
As a matter of fact, the entire statement sequence involving v?_inside_p
can be simplified to:
if (! (classification[0]
| classification[1]
| classification[2])) {
I'm checking in a modification along those lines. It'll also unify some
cases where convenience copies of TBOOLEAN pm3d_color_from_column were
kept in ints.
--
Hans-Bernhard Broeker (br...@ph...)
Even if all the snow were burnt, ashes would remain.
|