I can’t believe I’m asking such a simple question on the forum but I’m forced by lack of insight…
I build a mesh in setup() because I want to manipulate it in the update/draw loop with some user-directed tools (e.g. mouse). I start with the simplest possible baby-step in the development process: create the mesh and draw a single line in the middle.
The mesh looks great: centered in the larger window and with the requested color. BUT a simple ofDrawLine() request produces no line. Here’s the draw() code – assume setup() make the mesh as requested:
void ofApp::draw() {
ofBackgroundGradient(ofColor(128), ofColor(64), OF_GRADIENT_CIRCULAR);
ofPushMatrix();
ofTranslate(midPt);mesh.draw();
ofSetColor(255, 255, 255);
ofSetLineWidth(5);
ofDrawLine(0, 0, 0, 100, 100, 0);ofPopMatrix();
}
In ofTranslate(), midPt is the common ofGetWidth()/2, ofGetHeight()/2 translation to center the mesh.
Thanks for input.