OpenToonz - An open-source full-featured 2D animation creation software
C
Use std::unordered_set
Tact Yoshida47eaf794adc1
diff --git a/toonz/sources/tnztools/plastictool_meshedit.cpp b/toonz/sources/tnztools/plastictool_meshedit.cppindex 3f770dcbe..a7f1bb691 100644--- a/toonz/sources/tnztools/plastictool_meshedit.cpp+++ b/toonz/sources/tnztools/plastictool_meshedit.cpp@@ -12,8 +12,7 @@#include "tcg/tcg_macros.h"#include "tcg/tcg_point_ops.h"-// boost includes-#include <boost/unordered_set.hpp>+#include <unordered_set>#include <unordered_map>using namespace tcg::bgl;@@ -494,13 +493,13 @@ namespace locals_ { // Need to use a named namespace due to// a known gcc 4.2 bug with compiler-generatedstruct VertexesRecorder // copy constructors.{- boost::unordered_set<int> &m_examinedVertexes;+ std::unordered_set<int> &m_examinedVertexes;public:typedef boost::on_examine_vertex event_filter;public:- VertexesRecorder(boost::unordered_set<int> &examinedVertexes)+ VertexesRecorder(std::unordered_set<int> &examinedVertexes): m_examinedVertexes(examinedVertexes) {}void operator()(int v, const TTextureMesh &) { m_examinedVertexes.insert(v); }@@ -511,7 +510,7 @@ namespace { //void splitUnconnectedMesh(TMeshImage &mi, int meshIdx) {struct locals {static void buildConnectedComponent(const TTextureMesh &mesh,- boost::unordered_set<int> &vertexes) {+ std::unordered_set<int> &vertexes) {// Prepare BFS algorithmstd::unique_ptr<UCHAR[]> colorMapP(new UCHAR[mesh.vertices().nodesCount()]());@@ -528,7 +527,7 @@ void splitUnconnectedMesh(TMeshImage &mi, int meshIdx) {// Retrieve the list of vertexes in the first connected componentTTextureMesh &origMesh = *mi.meshes()[meshIdx];- boost::unordered_set<int> firstComponent;+ std::unordered_set<int> firstComponent;locals::buildConnectedComponent(origMesh, firstComponent);if (firstComponent.size() == origMesh.verticesCount()) return;