Skip to content

Instantly share code, notes, and snippets.

View jbl0ndie's full-sized avatar
🤓

Jonathon Hodges jbl0ndie

🤓
View GitHub Profile
#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