|
|
|
|
@ -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, |
|
|
|
|
|