This post is part of a course on geometric modeling at the Summer Liberal Arts Institute for Computer Science held at Carleton College in 2021.
Every archaeological dig seems to turn up a bowl. Our species has been making them for millenia, so it only seems right to make one out of code.
Write a function named
generateBowl to generate this kind of shape. Have it accept these parameters:
majorRadiusof the bowl, which marks the distance from the y-axis to the outer rim.
minorRadiusof the bowl, which marks the distance from the y-axis to the inner rim.
Use boolean operations to create your bowl.