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

Erase a vertex from ofPath?

$
0
0

@cuinjune wrote:

Hi, I wonder if it's possible to remove a vertex from ofPath which is already set.

For example, if I draw a rectangle using ofPath, I can add vertices as below.

path.moveTo(0,0);
path.lineTo(100,0);
path.lineTo(100,100);
path.lineTo(0,100);
path.close();

And what if I want to remove "path.lineTo(0,100);" to make it a triangle shape?
Is it possible to do this without clearing and re-adding vertices?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles