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

ofPolyline to ofPath

$
0
0

@pandereto wrote:

I need to draw an ofxCv contour as a filled shape, and i think that is not possible to draw a filled ofPolyline.

So how can i convert an ofPolyline to ofPath¿?

I tried this way, but the path is not closed and i do not why because the polyline is closed

	// get the polyline
	contorno = contourFinder.getPolyline(indexMaxGrande);

	// get the path of that polyline
	trazadoContorno.moveTo(contorno[0]);
	for (size_t i = 1; i < contorno.size(); ++i) trazadoContorno.lineTo(contorno[int(i)]);
	trazadoContorno.close();

Here you can see the ofPath created by this method

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles