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

Tweak the ofConePrimitives' vertices

$
0
0

@noine wrote:

I'm using the ofConePrimitive to create a pyramid. I want to tweak the vertices and in the documention (http://openframeworks.cc/documentation/3d/ofConePrimitive/) the following is given to do that.

// get all the faces from the cpme, handy when you want to copy
// individual vertices or tweak them a little
vector triangles = cone.getMesh().getUniqueFaces();

So now they're stored in a variable, but how do I get the vertices, tweak them and aply them? Or use them to draw lines between them?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles