Click here to Skip to main content
14,455,062 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd5-May-19 1:59
MemberSuper Lloyd5-May-19 1:59 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 4:05
mvahoney the codewitch5-May-19 4:05 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd5-May-19 4:43
MemberSuper Lloyd5-May-19 4:43 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 4:54
mvahoney the codewitch5-May-19 4:54 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd5-May-19 5:02
MemberSuper Lloyd5-May-19 5:02 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 5:51
mvahoney the codewitch5-May-19 5:51 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd5-May-19 11:07
MemberSuper Lloyd5-May-19 11:07 
GeneralRe: I need to exorcise my computer from voodoo Pin
Carlosian8-May-19 9:38
MemberCarlosian8-May-19 9:38 
In my past I did a lot of geometric programming. Something we had to be be very careful of was degenerate intersections and numerical tolerance. That is the first thing I thought of when you mentioned an odd number of intersections. If you are at or very close to the endpoint of a line segment, it might miss, or hit, when it really shouldn't.

Sometimes you have to catch them and handle them specially (*cough* hack *cough*). Like artificially extend the vector slightly to see if it intersects within the segment, or keep intersections that are questionable conditional until you can tell the count is right. For instance, imagine two line segments whose common endpoint is on or very close to the segment you are intersecting with. Really, there should be only one intersection there. But if you count each segment endpoint as colliding, then you get two intersections where you should have only one. Or vice versa, you might discard both because you think they are off the line, and have zero where you should have one.

Sorry, this is off the top of my head remembering stuff we had to deal with a long time ago.
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd8-May-19 14:43
MemberSuper Lloyd8-May-19 14:43 
GeneralRe: I need to exorcise my computer from voodoo Pin
GuyThiebaut5-May-19 5:03
professionalGuyThiebaut5-May-19 5:03 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 5:50
mvahoney the codewitch5-May-19 5:50 
GeneralRe: I need to exorcise my computer from voodoo Pin
0x01AA5-May-19 5:58
professional0x01AA5-May-19 5:58 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 6:07
mvahoney the codewitch5-May-19 6:07 
GeneralRe: I need to exorcise my computer from voodoo Pin
0x01AA5-May-19 6:13
professional0x01AA5-May-19 6:13 
GeneralRe: I need to exorcise my computer from voodoo Pin
GuyThiebaut5-May-19 6:01
professionalGuyThiebaut5-May-19 6:01 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 6:06
mvahoney the codewitch5-May-19 6:06 
GeneralRe: I need to exorcise my computer from voodoo Pin
0x01AA5-May-19 6:20
professional0x01AA5-May-19 6:20 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 7:05
mvahoney the codewitch5-May-19 7:05 
GeneralRe: I need to exorcise my computer from voodoo Pin
0x01AA5-May-19 7:46
professional0x01AA5-May-19 7:46 
GeneralRe: I need to exorcise my computer from voodoo Pin
migelle6-May-19 1:54
Membermigelle6-May-19 1:54 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd6-May-19 2:35
MemberSuper Lloyd6-May-19 2:35 
GeneralRe: I need to exorcise my computer from voodoo Pin
migelle6-May-19 2:49
Membermigelle6-May-19 2:49 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd6-May-19 4:48
MemberSuper Lloyd6-May-19 4:48 
GeneralRe: I need to exorcise my computer from voodoo Pin
migelle6-May-19 5:20
Membermigelle6-May-19 5:20 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd6-May-19 16:07
MemberSuper Lloyd6-May-19 16:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.