Click here to Skip to main content
15,891,567 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: What's the most challenging algorithm you've ever faced Pin
davecasdf31-May-21 6:06
davecasdf31-May-21 6:06 
AnswerRe: What's the most challenging algorithm you've ever faced Pin
Super Lloyd29-May-21 16:32
Super Lloyd29-May-21 16:32 
QuestionRe: What's the most challenging algorithm you've ever faced Pin
Randor 29-May-21 19:52
professional Randor 29-May-21 19:52 
AnswerRe: What's the most challenging algorithm you've ever faced Pin
honey the codewitch29-May-21 23:48
mvahoney the codewitch29-May-21 23:48 
QuestionRe: What's the most challenging algorithm you've ever faced Pin
Randor 30-May-21 0:45
professional Randor 30-May-21 0:45 
AnswerRe: What's the most challenging algorithm you've ever faced Pin
honey the codewitch30-May-21 1:13
mvahoney the codewitch30-May-21 1:13 
AnswerRe: What's the most challenging algorithm you've ever faced Pin
honey the codewitch30-May-21 1:30
mvahoney the codewitch30-May-21 1:30 
GeneralRe: What's the most challenging algorithm you've ever faced Pin
Randor 30-May-21 18:34
professional Randor 30-May-21 18:34 
Well,

That doesn't really make any sense. I don't understand the technical issues you are encountering. Drawing, filling and scaling 2D polygons is exceedingly trivial.

Based on what you have said I see the following requirements:

1.) You are only supporting simple polygons[^].
2.) You need to write to the video device in a scanline pattern[^].
3.) You cannot read pixels.
4.) You have not stated why you can't draw in a frame buffer. But I will assume that you either can't or are unwilling.

So I don't think that you can use the Nonzero-rule[^].

But you could use the even–odd rule[^].

Some other things for you to read for scaling your polygons:
Dot product[^]

Best Wishes,
-David Delaune
GeneralRe: What's the most challenging algorithm you've ever faced Pin
honey the codewitch30-May-21 18:49
mvahoney the codewitch30-May-21 18:49 
GeneralRe: What's the most challenging algorithm you've ever faced Pin
Randor 30-May-21 19:08
professional Randor 30-May-21 19:08 
GeneralRe: What's the most challenging algorithm you've ever faced Pin
honey the codewitch30-May-21 19:30
mvahoney the codewitch30-May-21 19:30 
GeneralRe: What's the most challenging algorithm you've ever faced Pin
honey the codewitch30-May-21 19:39
mvahoney the codewitch30-May-21 19:39 
GeneralRe: What's the most challenging algorithm you've ever faced Pin
Randor 30-May-21 19:56
professional Randor 30-May-21 19:56 
GeneralRe: What's the most challenging algorithm you've ever faced Pin
honey the codewitch30-May-21 21:30
mvahoney the codewitch30-May-21 21:30 
PraiseRe: What's the most challenging algorithm you've ever faced Pin
Randor 30-May-21 22:02
professional Randor 30-May-21 22:02 
GeneralRe: What's the most challenging algorithm you've ever faced Pin
honey the codewitch31-May-21 3:02
mvahoney the codewitch31-May-21 3:02 
JokeRe: What's the most challenging algorithm you've ever faced Pin
Randor 31-May-21 4:04
professional Randor 31-May-21 4:04 
GeneralRe: What's the most challenging algorithm you've ever faced Pin
honey the codewitch31-May-21 4:15
mvahoney the codewitch31-May-21 4:15 
AnswerRe: What's the most challenging algorithm you've ever faced Pin
Greg Utas30-May-21 6:54
professionalGreg Utas30-May-21 6:54 
GeneralRe: What's the most challenging algorithm you've ever faced Pin
honey the codewitch30-May-21 7:02
mvahoney the codewitch30-May-21 7:02 
AnswerRe: What's the most challenging algorithm you've ever faced Pin
Clumpco30-May-21 20:20
Clumpco30-May-21 20:20 
GeneralRe: What's the most challenging algorithm you've ever faced Pin
honey the codewitch30-May-21 21:33
mvahoney the codewitch30-May-21 21:33 
AnswerRe: What's the most challenging algorithm you've ever faced Pin
ormonds31-May-21 1:52
ormonds31-May-21 1:52 
AnswerRe: What's the most challenging algorithm you've ever faced Pin
ElectronProgrammer31-May-21 2:08
ElectronProgrammer31-May-21 2:08 
AnswerRe: What's the most challenging algorithm you've ever faced Pin
BDieser31-May-21 3:37
BDieser31-May-21 3:37 

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.