Click here to Skip to main content
15,891,904 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 0:59
Super Lloyd5-May-19 0:59 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 3:05
mvahoney the codewitch5-May-19 3:05 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd5-May-19 3:43
Super Lloyd5-May-19 3:43 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 3:54
mvahoney the codewitch5-May-19 3:54 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd5-May-19 4:02
Super Lloyd5-May-19 4:02 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 4:51
mvahoney the codewitch5-May-19 4:51 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd5-May-19 10:07
Super Lloyd5-May-19 10:07 
GeneralRe: I need to exorcise my computer from voodoo Pin
Carlosian8-May-19 8:38
Carlosian8-May-19 8: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 13:43
Super Lloyd8-May-19 13:43 
GeneralRe: I need to exorcise my computer from voodoo Pin
GuyThiebaut5-May-19 4:03
professionalGuyThiebaut5-May-19 4:03 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 4:50
mvahoney the codewitch5-May-19 4:50 
GeneralRe: I need to exorcise my computer from voodoo Pin
User 110609795-May-19 4:58
User 110609795-May-19 4:58 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 5:07
mvahoney the codewitch5-May-19 5:07 
GeneralRe: I need to exorcise my computer from voodoo Pin
User 110609795-May-19 5:13
User 110609795-May-19 5:13 
GeneralRe: I need to exorcise my computer from voodoo Pin
GuyThiebaut5-May-19 5:01
professionalGuyThiebaut5-May-19 5:01 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 5:06
mvahoney the codewitch5-May-19 5:06 
GeneralRe: I need to exorcise my computer from voodoo Pin
User 110609795-May-19 5:20
User 110609795-May-19 5:20 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 6:05
mvahoney the codewitch5-May-19 6:05 
GeneralRe: I need to exorcise my computer from voodoo Pin
User 110609795-May-19 6:46
User 110609795-May-19 6:46 
GeneralRe: I need to exorcise my computer from voodoo Pin
migelle6-May-19 0:54
migelle6-May-19 0:54 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd6-May-19 1:35
Super Lloyd6-May-19 1:35 
GeneralRe: I need to exorcise my computer from voodoo Pin
migelle6-May-19 1:49
migelle6-May-19 1:49 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd6-May-19 3:48
Super Lloyd6-May-19 3:48 
GeneralRe: I need to exorcise my computer from voodoo Pin
migelle6-May-19 4:20
migelle6-May-19 4:20 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd6-May-19 15:07
Super Lloyd6-May-19 15: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.