Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Dinamically setting the points of a bezierVertex in a PShape

$
0
0
Hi Benj, thanks for your replies.

I just want to be able to make it bigger in a simple way and not using scale(). I have some other simpler shapes, not using bezier vertexs, and I can easily change the position of the vertexs using getVertex(), getVertexCount() and setVertex().

I've recently realised that when creating a PShape and adding a bezierVertex() to it, Processing automatically converts the bezierVertex into 20 'normal' vertexs (well, 20 or you can set it to another number using bezierDetail). So I loose control of the points I used when creating that shape, thus it's not so easy for me to manipulate those points to make the shape appear where I'd like to.

setBezierVertex() is a name I made up myself, it's the method I'd like to use if the PShape stored the bezier vertex points used for creating it instead of calculating the 20 points.




Viewing all articles
Browse latest Browse all 1768

Trending Articles