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

Draw a specific ofMeshFace

$
0
0

@Kaito_Kid wrote:

I have this specific of3dPrimitive, and I would like to draw only some specific faces.

I am using this:

for (auto face : prim->getMesh().getUniqueFaces())
{
    if (shouldDrawThisFace(face))
    {
        ofSetColor(face.getColor(0));
        // How to draw this face?
    }
}

How could I draw an instance of OfMeshFace instead of drawing all the faces of an ofMesh with ofMesh::draw() or ofMesh::drawFaces()?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles