jasonwebb / morphogenesis-resources

Resources on the topic of digital morphogenesis (creating form with code). Includes links to major articles, code repos, creative projects, books, software, and more.
2.03k stars 114 forks source link

Sutherland-Hodgman #32

Closed aevin-io closed 3 years ago

aevin-io commented 3 years ago

I'd like to suggest Sutherland-Hodgman algorithm to be included.

jasonwebb commented 3 years ago

Thanks @aevinsounds! I've prepared a new section under "code techniques" for polygon clipping in general, listing the Sutherland-Hodgman algo among others. Before I pushed the update though, I was wondering if you could help explain in a sentence or two what polygon clipping is useful for in practice?

The references I've found so far talk about how to do polygon clipping, but I'm not very familiar with the topic so I'm not sure about the "why". Given how much literature there is on the topic, I feel like I'm missing what the generalized problem is. Is it maybe historically important for improving performance by clipping offscreen geometry before rendering?

aevin-io commented 3 years ago

Im far from an expert about the particular topic - i've only came to use it for some project. From what i concluded from my research on the matter there are a few applications

Sorry for the wordy and general explaination of all this :) hope it helps somehow !

jasonwebb commented 3 years ago

Added! https://github.com/jasonwebb/morphogenesis-resources#polygon-clipping

Let me know if you think anything should be changed!