Commit 0af49e3d authored by artificiel's avatar artificiel
Browse files

ClusterMesh; raffinement du draw()

parent 1e3bb5ad
......@@ -156,14 +156,19 @@ class ClusterMesh
cone.setPosition(centroid[0] * scale, centroid[1] * scale, centroid[2] * scale);
}
void draw(bool draw_centroid = true)
void draw(bool draw_centroid = true, bool draw_colors = true, bool draw_cursor = true)
{
if (lostTime < GRAPPE_AU_DELA) {
mesh->disableColors();
if (!draw_colors) {
mesh->disableColors();
}
mesh->drawVertices();
if (draw_cursor) {
ofDrawLine(centroid[0],0, centroid[2],centroid[0],20,centroid[2]);
}
if (draw_centroid) {
centroid_mesh_.drawWireframe();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment