Archived

This topic is now archived and is closed to further replies.

periergos

Spliting polygon from BSP FAQ

Recommended Posts

periergos    122
well my question is simple.... I was reading the SplitPolygon function in the BSP FAQ but i didn''t understand one line! this: real sect = - part->Classify_Point(ptA) / (part->Normal() | v); what is the "|" symbol in the end of this line? thank you!!

Share this post


Link to post
Share on other sites
petewood    819
edit ignore this:

it's a bitwise OR

A||B will return true if A or B are non-zero
A|B will return the combined bits.

If

A = 1001001 and
B = 0001101 then
A|B =1001101


[edited by - petewood on March 19, 2003 8:58:07 AM]

Share this post


Link to post
Share on other sites
Alimonster    185
It's not going to be the bitwise operator in this case, since it's operating on a vector -- instead, it's an overloaded mathematical operator. Dot product, maybe?

EDIT: Checked out the FAQ and saw this:

quote:
The overloaded operator for a dot product (inner product, scalar product, etc.) of two vectors is the '|' symbol


[edited by - Alimonster on March 19, 2003 7:38:20 AM]

Share this post


Link to post
Share on other sites
periergos    122
My god!!!
Guys!!! Lets get serious!!!!You think that if a had the vector class definition i would ask you?????
I dont have it!!!
BSP FAQ dont have it!!!
thats why i am asking you!!!

Share this post


Link to post
Share on other sites
Alimonster    185
quote:
Original post by periergos
My god!!!
Guys!!! Lets get serious!!!!You think that if a had the vector class definition i would ask you?????
I dont have it!!!
BSP FAQ dont have it!!!
thats why i am asking you!!!

Why are you completely ignoring the information I posted several hours ago?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Seriously. The information you needed was in the very FAQ you were reading, yet you didn''t find it. Don''t go nuts.

Share this post


Link to post
Share on other sites