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
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'httparty' | |
unless ARGV[0] && ARGV[1] | |
puts "Usage: ruby sketchup_downloader.rb path/to/terms.csv path/to/folder" | |
exit 1 | |
end |
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" | |
void drawModel(ofMesh& mesh) { | |
glEnableClientState(GL_VERTEX_ARRAY); | |
glVertexPointer(3, GL_FLOAT, sizeof(ofVec3f), &mesh.getVerticesPointer()->x); | |
glEnableClientState(GL_NORMAL_ARRAY); | |
glNormalPointer(GL_FLOAT, sizeof(ofVec3f), &mesh.getNormalsPointer()->x); | |
if(mesh.getNumIndices()){ | |
glDrawElements(ofGetGLPrimitiveMode(mesh.getMode()), mesh.getNumIndices(), GL_UNSIGNED_INT, mesh.getIndexPointer()); | |
}else{ |
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
11.252J Computer Games and Simulations for Investigation and Education http://student.mit.edu/catalog/m11b.html#11.252 | |
CMS.809 Transmedia Storytelling: Modern Science Fiction http://student.mit.edu/catalog/mCMSa.html#CMS.809 | |
MAS.864 The Nature of Mathematical Modeling |
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
NSOpenGLPixelFormatAttribute attr[] = | |
{ | |
NSOpenGLPFADoubleBuffer, | |
NSOpenGLPFAAccelerated, | |
NSOpenGLPFADepthSize, 24, | |
NSOpenGLPFAMultisample, | |
NSOpenGLPFASampleBuffers, 1, | |
NSOpenGLPFASamples, 4, | |
(NSOpenGLPixelFormatAttribute) 0 | |
}; |
OlderNewer