GH-Only Catmull-Clark Subdivision

24Jun11

As an exercise, I decided to try to implement the Catmull-Clark subdivision algorithm in Grasshopper alone. This means no scripts, and no 3rd-party components (such as weaverbird). This is not designed to be a utility – by all means, if you have to subdivide a mesh in this way, just use Weaverbird. I am always interested in the way traditional coding approaches translate into a non-textual language like Grasshopper, and this was a fun way to push a bit at GH’s data management to achieve comparable results to scripting approaches.

The algorithm as implemented can handle closed meshes with quad faces only. I will attempt a version that can handle tri-faces eventually.

I based my approach on the pseudocode available at Rosetta Code.

DOWNLOAD DEFINITION HERE: GH_Catmull_Clark.gh

Advertisements


No Responses Yet to “GH-Only Catmull-Clark Subdivision”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: