void FaceInstance::select_edge(std::size_t index, bool select) { if (select) { VertexSelection_insert(m_edgeSelection, getFace().getWinding()[index].adjacent); } else { VertexSelection_erase(m_edgeSelection, getFace().getWinding()[index].adjacent); } SceneChangeNotify(); update_selection_edge(); }
void FaceInstance::select_vertex (std::size_t index, bool select) { const Winding& winding = m_face->getWinding(); if (select) { VertexSelection_insert(m_vertexSelection, winding[index].adjacent); } else { VertexSelection_erase(m_vertexSelection, winding[index].adjacent); } SceneChangeNotify(); update_selection_vertex(); }