ICE modeling: Building a polygonal description


In this video, I use a simple example (a 2×2 grid) to show one approach to building up a polygonal description array.

A polygonal description array is an array of vertex indices that looks something like this:

0 3 4 1 -2 1 4 5 2 -2 3 6 7 4 -2 4 7 8 5 -2

where the “-2” is a separator between polygons.

If you’re interested, the corresponding scene is here.

hat tip to Guillaume Laferriere for the Index Array to Select Case technique.

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 )

Connecting to %s