Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Best way to draw an array of objects

$
0
0

there was an error in the code i posted for the polyline it should be:

        ofPolyline circle;
        circle.arc(0,0,radius,radius,0,360);
        for(int i=0; i<circle.getVertices().size()-1; i++){
            mesh.addVertex(circle[i]+pos);
            mesh.addVertex(circle[i+1]+pos);
            mesh.addVertex(ofVec3f(0,0)+pos);
        }

the indices the tessellation is creating are just the order in which the triangles are drawn. if you use mesh.append(otherMesh) it'll do the right thing and reorder the indices properly but since you want to modify the vertices before adding the mesh (to add the position) probably the easiest is to just use the polyline variation


Viewing all articles
Browse latest Browse all 40524

Trending Articles


Practice Sheet of Right form of verbs for HSC Students


TYKEMA GLEATON


The Conjuring 2 (Tamil Dubbed)


Woman stabbed 12 times and dumped in ditch


Moondru Mudichu 07-06-2016 – Polimer tv Serial


Trio remanded on gun, other serious charges


Rick Ross & Etana – Kiss Of Judas – Single [iTunes Plus M4A]


The 6 Best Sex Scenes in Nollywood Movies


Take this week's NJ.com Local News Quiz


Angeline Yap kym?