9
or Increase y by 1 and x by 1/k if k > 1 Cons) Floating-point operations are expensive

Cons) Floating-point operations are expensive · 2019. 3. 15. · First bit: above top edge Second bit: below bottom edge Third bit: to the right of right edge Fourth bit: to the

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Cons) Floating-point operations are expensive · 2019. 3. 15. · First bit: above top edge Second bit: below bottom edge Third bit: to the right of right edge Fourth bit: to the

or Increase y by 1 and x by 1/k if k > 1

Cons) Floating-point operations are expensive

Page 2: Cons) Floating-point operations are expensive · 2019. 3. 15. · First bit: above top edge Second bit: below bottom edge Third bit: to the right of right edge Fourth bit: to the

First bit: above top edge

Second bit: below bottom edge

Third bit: to the right of right edge

Fourth bit: to the left of left edge

(in 2D)

4-bits binary code

Page 3: Cons) Floating-point operations are expensive · 2019. 3. 15. · First bit: above top edge Second bit: below bottom edge Third bit: to the right of right edge Fourth bit: to the
Page 4: Cons) Floating-point operations are expensive · 2019. 3. 15. · First bit: above top edge Second bit: below bottom edge Third bit: to the right of right edge Fourth bit: to the

0000

Page 5: Cons) Floating-point operations are expensive · 2019. 3. 15. · First bit: above top edge Second bit: below bottom edge Third bit: to the right of right edge Fourth bit: to the

0000 0000

Page 6: Cons) Floating-point operations are expensive · 2019. 3. 15. · First bit: above top edge Second bit: below bottom edge Third bit: to the right of right edge Fourth bit: to the

(bitwise AND)

0000

Page 7: Cons) Floating-point operations are expensive · 2019. 3. 15. · First bit: above top edge Second bit: below bottom edge Third bit: to the right of right edge Fourth bit: to the

0000

Page 8: Cons) Floating-point operations are expensive · 2019. 3. 15. · First bit: above top edge Second bit: below bottom edge Third bit: to the right of right edge Fourth bit: to the

Cohen–Sutherland in 3D

• 27 regions with a 6 bit code

Page 9: Cons) Floating-point operations are expensive · 2019. 3. 15. · First bit: above top edge Second bit: below bottom edge Third bit: to the right of right edge Fourth bit: to the

Acknowledgement

• Acknowledgement: Some materials come from the lecture sildes of

– Prof. Anders Hast, Uppsala Univ.