예제 #1
0
void FaceInstance::select_vertex(std::size_t index, bool select) {
	if (select) {
		VertexSelection_insert(m_vertexSelection, getFace().getWinding()[index].adjacent);
	}
	else {
		VertexSelection_erase(m_vertexSelection, getFace().getWinding()[index].adjacent);
	}

	SceneChangeNotify();
	update_selection_vertex();
}
예제 #2
0
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();
}