#### Archived

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

# Spliting polygon from BSP FAQ

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

## 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 on other sites
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 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 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 on other sites
Its definately a dotproduct.

##### 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 on other sites
Seriously. The information you needed was in the very FAQ you were reading, yet you didn''t find it. Don''t go nuts.

1. 1
2. 2
Rutin
19
3. 3
4. 4
5. 5

• 14
• 12
• 9
• 12
• 37
• ### Forum Statistics

• Total Topics
631434
• Total Posts
3000048
×