CAD From Scratch [17] | Constrained Delaunay Triangulations

  Рет қаралды 6,446

xmdi

xmdi

Күн бұрын

[For the impatient, go to 26:30 to see the results.] 17th video in a series on programming CAD utilities from scratch in C. In this video, we implemented an algorithm to adapt constraint edge requirements to our old Delaunay triangulations.
Comments, questions, and suggestions gladly appreciated.
Code on Github: github.com/xmd...
If you found this content interesting, consider donating to Feeding America: www.feedingame...

Пікірлер: 20
@fnax
@fnax 2 жыл бұрын
Love this videos. Really inspiring project.
@foxcirc
@foxcirc Ай бұрын
this explaination is great
@celinejost2745
@celinejost2745 2 жыл бұрын
Awesome tutorial, thank you very much for sharing! I wonder (I assume no constraints for simplicity), what would happen if the next point I place, P, is exactely on the edge where 2 already created (anticlockwise) triangles ABC and DEF meet? So AB and ED are the same edge and P is on that edge somewhere in between. If I consider P to be inside ABC, then I can only make two 'real' triangles out of ABC, not three: PCA and PBC. "Triangle" PAB is 'degenerate' since P, A and B are on a line. I would think that I must in addition treat P to be contained in DEF, and so I would make 2 'real' triangles here too: PEF and PFD (and here again, PED is 'degenerate' since P, E and D are on a line. So in total I would end up with a total triangle count of +2 after placing my point P, which is similar as in the 'normal' case where I slice one triangle into 3 when my point is not on an edge but nicely inside the triangle.) - Would this be the correct approach? - Or would I really just pick either ABC or DEF to contain P? And if so, then how do I deal with the degenerate third triangle? Since the radius of the 'Delaunay circle' of that thing would be infinite... - Does the code do the right thing in this case? Thank you for any insights!!
@LangDat5989
@LangDat5989 2 жыл бұрын
hey how can i check time program run in win7
@ssss-sk2sl
@ssss-sk2sl 2 жыл бұрын
Test 3 : s-i-m-p
@daveyhu
@daveyhu Жыл бұрын
Very well presented, easy to understand and having the source code makes it the best tutorial on triangulation I'd come across. Will you be making an episode 18?
@inginx747
@inginx747 2 ай бұрын
Noticed the draft on 2.a says the non-convex edge is skipped instead of being added back. You did that in the code though
@local-admin
@local-admin 27 күн бұрын
THANK YOU FOR THIS
@johann2518
@johann2518 5 ай бұрын
Excellent explanation! It really helped me in implementing the triangulation. However, I think the routine for identifying all edge intersections on a given constraint isn't always correct. There's the possibility that two edges of a triangle have the constraint's endpoints on the right side.
@ssss-sk2sl
@ssss-sk2sl 2 жыл бұрын
Test 6 , same with black people, but in respond to this message
@computerscience5803
@computerscience5803 2 жыл бұрын
we learned what CAD stands for, but what does your username mean?
@ssss-sk2sl
@ssss-sk2sl 2 жыл бұрын
Test 4 : y-o-u-'-l-l n-e-v-e-r b-e -a r-e-a-l w-o-m-a-n
@lennutrajektoor
@lennutrajektoor 2 жыл бұрын
I bet no one noticed it was presented in Paint!
@notsoren665
@notsoren665 Жыл бұрын
When does the next episode come out?
@fred7981
@fred7981 10 ай бұрын
Is there a videoe for 3D?
@dallamine7470
@dallamine7470 Жыл бұрын
How can I contact you
@legoh911
@legoh911 2 жыл бұрын
love this series!
@ssss-sk2sl
@ssss-sk2sl 2 жыл бұрын
My comments are censored, all I can say is I really like trans people, but read it like it's the opposite, try it yourself, you are only allowed to like trans people by the AI
@covidsmr8860
@covidsmr8860 2 жыл бұрын
Ah yes, scientific method.
Planar Delaunay Triangulations | CAD From Scratch [16]
29:06
GEO1015 -- Triangulations & Voronoi diagram
17:23
Hugo Ledoux
Рет қаралды 31 М.
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 3,3 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 7 МЛН
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 7 МЛН
Fast and Beautiful Assembly
34:28
Kay Lack
Рет қаралды 11 М.
Polygon Triangulation [1] - Overview of Ear Clipping
14:10
Two-Bit Coding
Рет қаралды 22 М.
The Midpoint Circle Algorithm Explained Step by Step
13:33
NoBS Code
Рет қаралды 55 М.
HOW TRANSISTORS RUN CODE?
14:28
Core Dumped
Рет қаралды 446 М.
Every Infinity Paradox Explained
15:57
ThoughtThrill
Рет қаралды 325 М.
Coding Challenge 181: Weighted Voronoi Stippling
28:59
The Coding Train
Рет қаралды 167 М.
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel
Рет қаралды 187 М.
Breaking Leptop in Every Possible Way! 💻💔" #shorts
0:52
Light Movies
Рет қаралды 1,2 МЛН
CRAZY KEYBOARD CHALLENGE 😮How fast could you type?
0:41
Hipyo Tech
Рет қаралды 23 МЛН
Игровой руль - штука годная 👍
0:50
RxFx
Рет қаралды 3,8 МЛН
А ты уже обновился на IOS 18 ?😅 #айфон #apple #ios #ios18 #iphone
1:00
Покупка бюджетного ПК на Wildberries? 🤬
0:59
Вэйми
Рет қаралды 3,6 МЛН