• Advertisement

Archived

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

Spliting polygon from BSP FAQ

This topic is 5456 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
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
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
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

  • Advertisement