|
I found a better way that also does anti-aliasing.
I ... figured out some things, including what you're saying, but there's more.
In the end it involves sorting and tracking edges, and doing something the code I'm referencing (public domain! yay!) calls "xor winding" - it doesn't use pure xor though - it uses a flag (invert )
anyway I'm working through it because it renders to bitmaps and I want to render directly to a drawing surface (even if that surface is a bitmap! but also if it's a display)
Real programmers use butterflies
|
|
|
|
|
Ha! Exactly like the kind of problem I had on my own polygon library! Good luck!
|
|
|
|
|
You know, I don't think that's the problem now that I've tried 3 different polygon fill algos and got the same result. It's not because the poly is overlapping. There's something wrong with how it's being terminated to begin with but I'm not sure what.
I've used even/odd, non-zero-rule/winding, and PNPOLY and the latter two deal with overlapping polygons (i'm not 100% certain about PNPOLY but i think it does)
It's super frustrating because the TTF format is complicated, and loading those glyphs wasn't easy.
Real programmers use butterflies
|
|
|
|
|
|
See the red "Got a programming question?" link at the top.
Not a good start as part of the community.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
I'm guessing the name means "Idiot finding out what I can get away with" - marketing dweebs don't care about accuracy ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
What's not a secret signal is the stuff at the top of the page that you ignored.
Ask here: https://www.codeproject.com/Questions/ask.aspx[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
No offence but everything about this is wrong. Posted in the wrong place, with the wrong formatting, using std::list is probably wrong (the C++ name for a list is std::vector ), including bits/stdc++.h is wrong, using namespace std is .. OK not exactly wrong but a bad practice, and putting your data directly in the code instead of loading it from a file or resource is also questionable.
|
|
|
|
|
a newbee at "I can scramble some code" to bring other to help me.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
|
See the red "Got a programming question?" link at the top.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
That's because the indentation is missing: that;'s a secret signal to the compiler to generate spurious errors to prevent your code from ever working until it's actually readable.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
STOP POSTING THIS HERE. READ THE TOP OF THE FORUM. REPORTED
Real programmers use butterflies
|
|
|
|
|
You are a student. A team leader, even a junior programmer, would know how to debug!
|
|
|
|
|
Line 42
The less you need, the more you have.
Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?
JaxCoder.com
|
|
|
|
|
Literally, in this case. The printer is printing the first prototype parts of the Eagle's engine section. This is what it should look like: http://www.starshipmodeler.com/tech/eagle-37.jpg[^]
Obviously not a part that is easy to print, much less in one piece. And the whole model is like that. I had to throw away about 90% of the original 3D files and draw my own. The remaining 10% also had to be modified for more detail, making the model carry it's own weight without collapsing and to make it easier for the slicer to digest.
Both Blender and the slicer were not always cooperative, often eating up more time than designing and printng the parts. Thanks for all the advice in the other thread a few days ago. Remeshing seems to work. I have tried both Blender and Meshmixer and have gotten good results. The downside is, that this is very hard on the processor and you need a lot of RAM if you want to reach a high quality. I never have seen an I7 with 32 gig. RAM work so hard for almost an hour. In Blender there is a setting called 'octree depth' and you have to set it at least to 10 if you want a decent accuracy. With every level the memory and processor reqirements go upo by a factor of 8, so all this is not really a surprise.
Anyway, the first part of this 3D puzzle is now printing and looks good. Let's hope it still holds up when I scrape it off the build plate.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
I imagine it can use a video card to render. If you don't have a gaming or cad workstation card you might consider investing in one.
Real programmers use butterflies
|
|
|
|
|
Does bat columnist move around in the dark ? (12)
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
Should it be 1,11 if it was in English...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
No
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
NOCTAMBULIST == a sleepwalker (1, 11) in English
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
I think the difference is a noctambulist walks in the dark whereas it doesn't matter to a somnambulist -
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
In any case - we should drop back to English in CCC It is hard enough that way...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
|
NOCTAMBULIST
(Anagram of BATCOLUMNIST)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|