From 8d428ab5a84021b2cdb66510431ca1862089fe39 Mon Sep 17 00:00:00 2001 From: hesuicong Date: Mon, 8 Dec 2025 15:32:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E9=81=AE=E6=8C=A1=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/MVS/SceneTexture.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/MVS/SceneTexture.cpp b/libs/MVS/SceneTexture.cpp index e85ad5d..9921dcd 100644 --- a/libs/MVS/SceneTexture.cpp +++ b/libs/MVS/SceneTexture.cpp @@ -9605,20 +9605,22 @@ bool Scene::TextureMesh(unsigned nResolutionLevel, unsigned nMinResolution, unsi printf("id=%s\n", id.c_str()); #ifdef MASK_FACE_OCCLUSION - /* + //* fs::path p(baseFileName.c_str()); // 2. 获取父路径 (e.g., /path/to/data/scene) fs::path parent = p.parent_path(); // 4. 转换为字符串,并附加一个路径分隔符 // ( / "" 会自动处理,确保 /path/to/data 变为 /path/to/data/ ) std::string basePath = (parent / "").string(); - */ + //*/ + /* std::string basePath = ""; size_t lastSlash = baseFileName.find_last_of('/'); size_t secondLastSlash = baseFileName.find_last_of('/', lastSlash - 1); if (secondLastSlash == std::string::npos) basePath = baseFileName; basePath = baseFileName.substr(0, secondLastSlash + 1); + /*/ // printf("basePath=%s\n", basePath.c_str());