Cohen Sutherland line clipping algorithm solved example

  Рет қаралды 18,838

QuickCS

QuickCS

Күн бұрын

Lets learn Cohen Sutherland Line Clipping Algorithm with solved example.
THIS VIDEO IS UPDATED VERSION OF MY PREVIOUS COHEN SUTHERLAND LINE CLIPPING ALGORITHM.
BASIC CONCEPT:
This is one of the oldest and most popular line clipping algorithm.
Generally the method speeds up the processing of line segments by performing the initial tests that reduce the number of intersections that must be calculated.
Every line end point in the picture is assigned a 4 digit binary code, called a region code, that identifies the location of the point relative to the boundaries of clipping rectangle.
HOW TO ASSIGN THE REGION CODE??
T B R L
TOP BOTTOM RIGHT LEFT
IF the line end point is in the top-left position from clipping window then we assign ‘1’ to top and left. And for bottom and right we assign 0 as the line end point is NOT IN bottom & right position of clipping window.
SO the code for Top-left will be 1001
Similarly we assign code to all other positions.
Once we determine region codes of each endpoint of a line we can find out whether:
The line completely lies outside the clipping window
OR the line completely lies inside the clipping window.
OR the line partially lies inside the clipping window.
To find the above information we perform Logical AND operation on the area codes of 2 end points of the line &
IF Both end points lie outside clipping window and the logical AND is not 0000 then the line completely lies outside the clipping window.
IF BOTH endpoints lie inside clipping window the line lies inside the clipping window.
IF BOTH endpoints lie outside the clipping window and LOGICAL AND operation is 0000 then the line is partially inside the clipping window.
IF one of the endpoint is inside the window and one lies outside the window and LOGICAL AND operation is 0000 then the line is partially inside the clipping window.
if you have any suggestion for my Cohen Sutherland line clipping algorithm video, please post them in the comments section below.
IF YOU ENJOYED MY Cohen Sutherland line clipping algorithm VIDEO THEN HIT THE LIKE BUTTON.FOR MORE VIDEOS DO SUBSCRIBE AND LIKE AND SHARE. THANKS A LOT!!!!!!!!!!

Пікірлер: 14
@Varunmanojkumar
@Varunmanojkumar 3 жыл бұрын
Explained very well, got the concept clear in the head. Thank you
@nyambelilonga555
@nyambelilonga555 5 жыл бұрын
Feeling lucky to have had found your entire presentations.
@jayatrisarkar
@jayatrisarkar 4 ай бұрын
Sir you save me tomorrow is my exam
@abhinavnarendrakumar591
@abhinavnarendrakumar591 5 жыл бұрын
Amazing explanation, very easy to understand
@nature6571
@nature6571 5 жыл бұрын
shrt trick and easy explanation thanks sir
@nagrajkankonkar
@nagrajkankonkar 5 жыл бұрын
Man this is great work.. Thanks ❤
@nyambelilonga555
@nyambelilonga555 5 жыл бұрын
Am thankful
@progaming-qp9wh
@progaming-qp9wh 2 жыл бұрын
nice
@Makwayne
@Makwayne 6 жыл бұрын
Amazing, thank you so much!
@phillipbunu1372
@phillipbunu1372 6 жыл бұрын
for simimplicity sake thnx chibaba
@shubhampai9095
@shubhampai9095 6 жыл бұрын
Thanks man!
@shubhampai9095
@shubhampai9095 6 жыл бұрын
hehe, Hello
@mrcoolramu3265
@mrcoolramu3265 6 ай бұрын
can i get ppt?
@PrashantSahatiya
@PrashantSahatiya 6 жыл бұрын
I want the NLN Line clipping algorithm. Can you please upload it??
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 6 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 7 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 167 МЛН
cohen sutherland line clipping algorithm in HINDI
15:04
QuickCS
Рет қаралды 22 М.
COHEN SUTHERLAND LINE CLIPPING IN COMPUTER GRAPHICS
25:01
Sundeep Saradhi Kanthety
Рет қаралды 184 М.
Cohen Sutherland Method for Line Clipping Example ~xRay Pixy
8:34
Ritika xRay Pixy
Рет қаралды 14 М.
Cohen Sutherland line clipping algorithm solved example part 1
10:30
Part 14   Liang Barsky Line Clipping Algorithm
16:03
MSU VIDEOS
Рет қаралды 70 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 1,9 МЛН
Cohen Sutherland Line Clipping Algorithm | Computer Graphics
12:29
Abhishek Sharma
Рет қаралды 288 М.
Computer Graphics: Lecture #17: Cohen-Sutherland Line Clipping
24:22
Jyothi Mandala
Рет қаралды 51 М.
Midpoint subdivision line clipping algorithm
5:03
Ekeeda
Рет қаралды 5 М.
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 6 МЛН