Skip to content

Commit 20735ae

Browse files
committed
AIコメント対応
1 parent 857913a commit 20735ae

File tree

6 files changed

+11
-13
lines changed

6 files changed

+11
-13
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#pragma once
22

3-
#include "citygml/citymodel.h"
4-
#include <map>
53
#include <memory>
6-
#include <utility>
74
#include <vector>
85

96
namespace plateau::polygonMesh {
7+
class citygml::CityModel;
108
using CityModelVector = std::shared_ptr<std::vector<std::weak_ptr<const citygml::CityModel>>>;
119
}

include/plateau/polygon_mesh/tile_extractor.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#pragma once
22

33
#include <plateau/polygon_mesh/mesh_extractor.h>
4+
#include <plateau/polygon_mesh/polygon_mesh_types.h>
45
#include <libplateau_api.h>
56
#include <memory>
6-
#include <plateau/polygon_mesh/mesh.h>
7-
#include <plateau/geometry/geo_coordinate.h>
8-
#include <plateau/polygon_mesh/polygon_mesh_types.h>
97
#include "citygml/citymodel.h"
108
#include "model.h"
119

@@ -22,14 +20,14 @@ namespace plateau::polygonMesh {
2220
* CityModelのリストを結合し範囲内のModelを取り出します。
2321
*/
2422
static std::shared_ptr<Model> extractWithCombine(
25-
CityModelVector city_models, const MeshExtractOptions& options,
23+
const CityModelVector& city_models, const MeshExtractOptions& options,
2624
const std::vector<plateau::geometry::Extent>& extents);
2725

2826
/**
2927
* CityModelのリストを結合し範囲内のModelを取り出します。
3028
*/
3129
static void extractWithCombine(Model& out_model,
32-
CityModelVector city_models, const MeshExtractOptions& options,
30+
const CityModelVector& city_models, const MeshExtractOptions& options,
3331
const std::vector<plateau::geometry::Extent>& extents);
3432

3533
/**

src/c_wrapper/tile_extractor_c.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ extern "C"{
6161
if (out_model == nullptr || extents == nullptr || city_model_handle == nullptr) {
6262
return APIResult::ErrorInvalidArgument;
6363
}
64-
TileExtractor::extractWithGrid(*out_model, city_model_handle->getCityModel(), options, *extents);
6564
auto cityModelPtr = city_model_handle->getCityModelPtr();
6665
if (!cityModelPtr) {
6766
return APIResult::ErrorInvalidArgument;

src/polygon_mesh/area_mesh_factory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ namespace plateau::polygonMesh {
166166
}
167167

168168
GridMergeResult
169-
AreaMeshFactory::combine(CityModelVector city_models, const MeshExtractOptions& options, unsigned lod,
169+
AreaMeshFactory::combine(const CityModelVector& city_models, const MeshExtractOptions& options, unsigned lod,
170170
const plateau::geometry::GeoReference& geo_reference, const std::vector<plateau::geometry::Extent>& extents) {
171171

172172
const auto& gmlPath = city_models->empty() || city_models->front().expired() ? "" : city_models->front().lock()->getGmlPath();

src/polygon_mesh/area_mesh_factory.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
#include <plateau/polygon_mesh/mesh.h>
66
#include <plateau/polygon_mesh/mesh_extract_options.h>
77
#include <plateau/polygon_mesh/polygon_mesh_types.h>
8+
#include <map>
9+
#include <memory>
10+
#include <utility>
811

912
namespace plateau::polygonMesh {
1013
// グループIDとグリッドIDのペアをキーとし、その結合後Meshのmapです。
@@ -30,7 +33,7 @@ namespace plateau::polygonMesh {
3033
* 複数のcity_model内のメッシュを結合して返します。
3134
*/
3235
static GridMergeResult
33-
combine(CityModelVector city_models, const MeshExtractOptions& options, unsigned lod,
36+
combine(const CityModelVector& city_models, const MeshExtractOptions& options, unsigned lod,
3437
const plateau::geometry::GeoReference& geo_reference, const std::vector<plateau::geometry::Extent>& extents);
3538
};
3639
}

src/polygon_mesh/tile_extractor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ namespace {
165165
namespace plateau::polygonMesh {
166166

167167
std::shared_ptr<Model> TileExtractor::extractWithCombine(
168-
CityModelVector city_models, const MeshExtractOptions& options,
168+
const CityModelVector& city_models, const MeshExtractOptions& options,
169169
const std::vector<plateau::geometry::Extent>& extents) {
170170
auto result = std::make_shared<Model>();
171171
extractWithCombine(*result, city_models, options, extents);
@@ -174,7 +174,7 @@ namespace plateau::polygonMesh {
174174

175175
void TileExtractor::extractWithCombine(
176176
Model& out_model,
177-
CityModelVector city_models, const MeshExtractOptions& options,
177+
const CityModelVector& city_models, const MeshExtractOptions& options,
178178
const std::vector<plateau::geometry::Extent>& extents) {
179179
extractWithCombineInner(out_model, city_models, options, extents);
180180
}

0 commit comments

Comments
 (0)