Browse Source

编译通不过,先保存

ManualUV
hesuicong 7 hours ago
parent
commit
680c34242a
  1. 15
      libs/MVS/Scene.h
  2. 1483
      libs/MVS/SceneTexture.cpp

15
libs/MVS/Scene.h

@ -164,6 +164,21 @@ public: @@ -164,6 +164,21 @@ public:
std::map<std::string, std::unordered_set<int>>& edge_faces_map,
std::map<std::string, std::unordered_set<int>>& delete_edge_faces_map,
std::string& basePath);
bool LoadVisibleFacesData() {
std::map<std::string, std::unordered_set<int>> visible_faces_map;
std::unordered_set<int> face_visible_relative;
std::map<std::string, std::unordered_set<int>> edge_faces_map;
std::map<std::string, std::unordered_set<int>> delete_edge_faces_map;
std::string basePath = GetDefaultBasePath(); // 你需要实现这个函数
return LoadVisibleFacesData(visible_faces_map, face_visible_relative,
edge_faces_map, delete_edge_faces_map, basePath);
}
std::string GetDefaultBasePath() {
// 根据你的需求实现这个函数
// 例如:返回一个默认的路径,或者从配置中读取
return "default_path";
}
// Mesh texturing
bool TextureMesh(unsigned nResolutionLevel, unsigned nMinResolution, unsigned minCommonCameras=0, float fOutlierThreshold=0.f, float fRatioDataSmoothness=0.3f,

1483
libs/MVS/SceneTexture.cpp

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save