
On 24.08.2012 12:14, Erkan Gunpinar wrote:
Dear Möbius,
I would like to ask about giving colors to the edges and visualizing them on the Openflipper visualization framework. Here is my code, but I cannot see the colored edges;
m_mesh->request_edge_colors(); m_mesh->set_color(m_mesh->edge_handle(0), PolyMesh::Color(0, 255, 0)); PluginFunctions::setDrawMode(ACG::SceneGraph::DrawModes::EDGES_COLORED); emit updatedObject(m_targetObject->id(), UPDATE_COLOR); Hi,
can you try to set the color as: m_mesh->set_color(m_mesh->edge_handle(0), PolyMesh::Color(0.0, 1.0, 0.0, 1.0)); as the color format used in OpenFlipper is Vec4f. Did you check in the viewer, that the draw mode has actually changed to the one you set here? Best, Jan -- Dipl.Inform. Jan Möbius Department of Computer Science VIII Aachen University of Technology (RWTH) Ahornstrasse 55, 52074 Aachen, Germany Phone ++49 (0)241 80-21817 Fax ++49 (0)241 80-22899 mailto:moebius@cs.rwth-aachen.de http://www.rwth-graphics.de