Commit fe7842af authored by artificiel's avatar artificiel
Browse files

ClusterMesh: separation des curseurs ligne, centroide et cloud

parent e6d9f4fa
......@@ -157,19 +157,21 @@ class ClusterMesh
cone.setPosition(centroid[0] * scale, centroid[1] * scale, centroid[2] * scale);
}
void draw(bool draw_centroid = true, bool draw_colors = true, bool draw_cursor = true)
void draw(bool draw_centroid = true, bool draw_colors = true, bool draw_cursor = true, bool draw_clouds = true)
{
if (lostTime < GRAPPE_AU_DELA) {
if (!draw_colors) {
mesh->disableColors();
if (draw_clouds) {
if (!draw_colors) {
mesh->disableColors();
}
mesh->drawVertices();
}
mesh->drawVertices();
if (draw_cursor) {
ofDrawLine(centroid[0],0, centroid[2],centroid[0],20,centroid[2]);
ofDrawLine(centroid[0], 0, centroid[2], centroid[0], 20, centroid[2]);
}
if (draw_centroid) {
centroid_mesh_.drawWireframe();
}
......
Markdown is supported
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