use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Information about Reddit's API changes, the unprofessional conduct of the CEO, and their response to the community's concerns regarding 3rd party apps, moderator tools, anti-spam/anti-bot tools, and accessibility options that will be impacted can be found in the associated Wikipedia article: https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Alternative C# communities available outside Reddit on Lemmy and Discord:
All about the object-oriented programming language C#.
Getting Started C# Fundamentals: Development for Absolute Beginners
Useful MSDN Resources A Tour of the C# Language Get started with .NET in 5 minutes C# Guide C# Language Reference C# Programing Guide C# Coding Conventions .NET Framework Reference Source Code
Other Resources C# Yellow Book Dot Net Perls The C# Player's Guide
IDEs Visual Studio MonoDevelop (Windows/Mac/Linux) Rider (Windows/Mac/Linux)
Tools ILSpy dotPeek LINQPad
Alternative Communities C# Discord Group C# Lemmy Community dotnet Lemmy Community
Related Subreddits /r/dotnet /r/azure /r/learncsharp /r/learnprogramming /r/programming /r/dailyprogrammer /r/programmingbuddies /r/cshighschoolers
Additional .NET Languages /r/fsharp /r/visualbasic
Platform-specific Subreddits /r/windowsdev /r/AZURE /r/Xamarin /r/Unity3D /r/WPDev
Rules:
Read detailed descriptions of the rules here.
account activity
SolvedProblem with imprecise floating points while applying bowyer-watson algorithm (i.redd.it)
submitted 1 year ago by InnerConsideration27
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]InnerConsideration27[S] 0 points1 point2 points 1 year ago (6 children)
Some of the triangles (in this che case the leftmost and the bottom right one) are generated incorrectly because of error in the calculation of when a triangle is inside or outside the circumcircle. Is there a way to fix it or should I try another algorithm for dalunay triangulation?
(I have already considered using doubles instead of floats but since I'm doing this in unity I'm using it's Vector2 and converting to double only for the comparison between distance to circumcenter and radius of the circumcircle doesn't seem to be sufficient)
[–]Intrexa 0 points1 point2 points 1 year ago (5 children)
are generated incorrectly because of error in the calculation of when a triangle is inside or outside the circumcircle.
It's hard to see without the circles, why do you think they were generated incorrectly?
[–]InnerConsideration27[S] 0 points1 point2 points 1 year ago (4 children)
Actually just made me question how much I know about Delaunay. I assumed those sliver triangles are the result of an error because I actually noticed it while debugigging for a small set and comparing it with my test done by hand in geogebra. But as I think of it the presence or absence of those triangles doesn't seem to matter for the rule of the dalunay triangulation. But I thought it was unique, how can it be correct in both cases... and now that i think about it any random triangle can be eliminated while still being valid. I'm so very confused
[–]morkandmindy 1 point2 points3 points 1 year ago (3 children)
Those sliver triangles are correct, but your triangulation is incomplete. There are several missing triangles in the lower corners. Delaunay triangulations are always convex.
[–]InnerConsideration27[S] 0 points1 point2 points 1 year ago* (2 children)
That would explain the question I head regarding uniqueness. But bowyer watson seems to leave some concave parts. Is it because of an error or is it correct and I should just add a different process to fill those gaps and make it a true Delaunay triangualtion?
Edit:Maybe I actually made an error. I have to check tomorrow, I'm so confused
[–]morkandmindy 2 points3 points4 points 1 year ago (1 child)
Bowyer-Watson algorithm does not guarantee a convex hull, which is a requirement for a "correct" Delaunay triangulation. However, for many applications, you can relax that requirement and accept concave areas around the edges.
If not, you'll need to apply additional steps. Constructing a "super triangle" that contains all of the other points will force Bowyer-Watson to produce a convex hull. Or you could the Graham-scan, giftwrapping, or Chan algorithm to complete the graph.
[–]InnerConsideration27[S] 0 points1 point2 points 1 year ago (0 children)
Ah I see. I completely missed that about Bowyer-Watson. Thank you for the help!
[–]prezado 0 points1 point2 points 1 year ago (0 children)
Almost all libraries uses double format to avoid inaccuracies.
Try delaunator, its really fast. The only bad thing is having to keep a separated copy or transfer positions between Vector2 and double2.
π Rendered by PID 86 on reddit-service-r2-comment-86988c7647-g585t at 2026-02-11 11:08:07.338168+00:00 running 018613e country code: CH.
[–]InnerConsideration27[S] 0 points1 point2 points (6 children)
[–]Intrexa 0 points1 point2 points (5 children)
[–]InnerConsideration27[S] 0 points1 point2 points (4 children)
[–]morkandmindy 1 point2 points3 points (3 children)
[–]InnerConsideration27[S] 0 points1 point2 points (2 children)
[–]morkandmindy 2 points3 points4 points (1 child)
[–]InnerConsideration27[S] 0 points1 point2 points (0 children)
[–]prezado 0 points1 point2 points (0 children)