This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "ofMain.h" | |
ofMesh generatePieMesh( float radius, float segments ) { | |
// Create our mesh. | |
ofMesh mesh; | |
mesh.setMode( OF_PRIMITIVE_TRIANGLE_FAN ); | |
// Add the center point |