How to print using ofVec3f and printf RRS feed

  • Question

  • I am currently writing a program and am having trouble figuring out how print a ofVec3f type using the printf function. Below is the code I have been using.

    FILE* np = fopen("original_model_moves_normals.txt ", "w");
    for (int i = 0; i < mesh.getNumVertices(); i++) {
    ofVec3f n = mesh.getNormal(i);
    fprintf(np, "%d\n", mesh.getNormal(i));

    Tuesday, December 13, 2016 1:45 AM