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

Finding the Centroid of Multiple Polylines and Translating

$
0
0

@nobody wrote:

Hi,

Kind of a n00b question. I have a series of strokes I am reading into a vector of polylines. I would like to find the centroid of the blob (all the polylines together), and translate it to the center of the screen. This is a 2D app, and I am only rendering white strokes onto the screen (so no fills). Is there a clean way to do this, is polyline the right container?

Thanks in advance.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles