Spherical Geometry Coding Challenge

Simon completed the Spherical Geometry Coding Challenge by Daniel Shiffman! In this challenge, he created a sphere in Processing (Java) using spherical coordinates and triangle strips. Simon had already tried doing this challenge before but back then he got stuck with the triangle strips.

He had to work with converting Polar coordinates to Cartesian, which basically means converting from radius r and angle θ to the x and y, which Java can understand. Simon intervenes to type this:

x = r * cos(θ)

y = r * sin(θ)

Here is Simon explaining Polar to Cartesian conversion to Dad last night:

SOHCAHTOA 14 Mar 2017

The screenshot above come from another video by Daniel Shiffman, explaining Polar to Cartesian conversion.

Here is how Simon built his sphere step by step:

Advertisements

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