Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Tessellating unfilled ofPath?

$
0
0

@cuinjune wrote:

Hi, I'm trying to tessellate unfilled ofPath so I can draw the path using ofMesh.
But the following code below does not draw anything.

void ofApp::draw(){

ofPath path;
path.setFilled(false);
path.setStrokeWidth(2);
path.rectangle(ofGetWidth()/2, ofGetHeight()/2, 100, 100);

ofMesh mesh = path.getTessellation();
mesh.draw();

}

If I set "path.setFilled(true)", then it draws a filled rectangle, but nothing appears if I set "path.setFilled(false)".
Is it not possible to get tessellation of an unfiiled path and draw it?
I would like to draw the unfilled path through ofMesh(or ofVboMesh) for extra efficiency if possible.
Could anyone please give me any advice? Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles