The ofxAssimpModelLoader addon loads and draws 3D model files in openFrameworks
openFrameworks ships with the ofxAssimpModelLoader addon, which wraps the Assimp library to load 3D model files (.3ds, .obj, .dae, and many others). Workflow: add ofxAssimpModelLoader via projectGenerator, place the model file in bin/data, include the header in ofApp.h, declare an ofxAssimpModelLoader instance, call loadModel(filename, scale) in setup(), and call drawFaces() in draw(). The scale parameter in loadModel() normalizes the model to fit a given size in world units. drawFaces() renders filled polygons; alternatives include drawWireframe().
Examples
// ofApp.h: #include “ofxAssimpModelLoader.h” ofxAssimpModelLoader myModel; // setup(): myModel.loadModel(“squirrel.3ds”, 20); // draw(): myModel.drawFaces();
Assessment
Name the addon required, the two methods called (with their signatures), and explain what the second argument to loadModel() controls.