Click here to Skip to main content
15,895,777 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.

 
PraiseRe: Polygon filling, and TTF mess Pin
Randor 5-Jul-21 4:51
professional Randor 5-Jul-21 4:51 
GeneralRe: Polygon filling, and TTF mess Pin
honey the codewitch5-Jul-21 4:53
mvahoney the codewitch5-Jul-21 4:53 
GeneralRe: Polygon filling, and TTF mess Pin
honey the codewitch5-Jul-21 4:58
mvahoney the codewitch5-Jul-21 4:58 
AnswerRe: Polygon filling, and TTF mess Pin
Randor 5-Jul-21 7:18
professional Randor 5-Jul-21 7:18 
GeneralRe: Polygon filling, and TTF mess Pin
honey the codewitch5-Jul-21 9:09
mvahoney the codewitch5-Jul-21 9:09 
GeneralRe: Polygon filling, and TTF mess Pin
Randor 5-Jul-21 11:28
professional Randor 5-Jul-21 11:28 
GeneralRe: Polygon filling, and TTF mess Pin
honey the codewitch5-Jul-21 12:19
mvahoney the codewitch5-Jul-21 12:19 
GeneralRe: Polygon filling, and TTF mess Pin
honey the codewitch5-Jul-21 12:29
mvahoney the codewitch5-Jul-21 12:29 
I got the exact same result with the PNPOLY algorithm. I'm starting to think there's some kind of problem with how I'm building the final points of my glyph? I don't know. *scratches head* I'm kind of clueless right now.

C#
static bool IsInsidePolygon2(Point P, Point[] V)
{
    int i, j;
    bool c = false;
    for(i=0,j=V.Length-1;i<V.Length; j=i++)
    {
        Point pti = V[i];
        Point ptj = V[j];
        if (((pti.Y > P.Y) != (ptj.Y > P.Y)) &&
         (P.X < (ptj.X - pti.X) * (P.Y - pti.Y) / (ptj.Y - pti.Y) + pti.X))
            c = !c;
    }
    return c;
}

Real programmers use butterflies

GeneralRe: Polygon filling, and TTF mess Pin
Randor 6-Jul-21 4:28
professional Randor 6-Jul-21 4:28 
GeneralRe: Polygon filling, and TTF mess Pin
honey the codewitch6-Jul-21 4:36
mvahoney the codewitch6-Jul-21 4:36 
GeneralRe: Polygon filling, and TTF mess Pin
Super Lloyd5-Jul-21 5:00
Super Lloyd5-Jul-21 5:00 
GeneralRe: Polygon filling, and TTF mess Pin
honey the codewitch5-Jul-21 12:53
mvahoney the codewitch5-Jul-21 12:53 
QuestionMessage Closed Pin
5-Jul-21 2:19
Marketing Media Hub5-Jul-21 2:19 
AnswerRe: Is there a way to add strings to a list without the quotation marks in C++? Pin
Maximilien5-Jul-21 2:26
Maximilien5-Jul-21 2:26 
GeneralRe: Is there a way to add strings to a list without the quotation marks in C++? Pin
OriginalGriff5-Jul-21 2:28
mveOriginalGriff5-Jul-21 2:28 
AnswerRe: Is there a way to add strings to a list without the quotation marks in C++? Pin
OriginalGriff5-Jul-21 2:27
mveOriginalGriff5-Jul-21 2:27 
AnswerRe: Is there a way to add strings to a list without the quotation marks in C++? Pin
harold aptroot5-Jul-21 2:34
harold aptroot5-Jul-21 2:34 
GeneralRe: Is there a way to add strings to a list without the quotation marks in C++? Pin
KarstenK5-Jul-21 4:14
mveKarstenK5-Jul-21 4:14 
QuestionMessage Closed Pin
5-Jul-21 2:24
Marketing Media Hub5-Jul-21 2:24 
AnswerRe: Dont work, it´s something whit the loops? Pin
Maximilien5-Jul-21 2:25
Maximilien5-Jul-21 2:25 
AnswerRe: Dont work, it´s something whit the loops? Pin
OriginalGriff5-Jul-21 2:26
mveOriginalGriff5-Jul-21 2:26 
AnswerRe: Dont work, it´s something whit the loops? Pin
honey the codewitch5-Jul-21 2:26
mvahoney the codewitch5-Jul-21 2:26 
AnswerRe: Dont work, it´s something whit the loops? Pin
Greg Utas5-Jul-21 2:37
professionalGreg Utas5-Jul-21 2:37 
AnswerRe: Dont work, it´s something whit the loops? Pin
Mike Hankey5-Jul-21 3:12
mveMike Hankey5-Jul-21 3:12 
GeneralThis is the end... Pin
CodeWraith5-Jul-21 0:00
CodeWraith5-Jul-21 0:00 

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.