File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
include/plateau/polygon_mesh Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ namespace plateau::polygonMesh {
5050 };
5151 }
5252
53- CityObjectIndex nextPrimary () const {
53+ CityObjectIndex getPrimary () const {
5454 return {
5555 primary_index,
5656 invalidIndex ()
Original file line number Diff line number Diff line change @@ -224,8 +224,9 @@ namespace plateau::polygonMesh {
224224
225225 const auto & gml_id = city_object.getId ();
226226
227- mesh_->addUV4WithSameVal (available_primary_index_.toUV (), vertex_count);
228- mesh_->city_object_list_ .add (available_primary_index_, gml_id);
227+ const auto primary_index = available_primary_index_.getPrimary ();
228+ mesh_->addUV4WithSameVal (primary_index.toUV (), vertex_count);
229+ mesh_->city_object_list_ .add (primary_index, gml_id);
229230 ++available_primary_index_.primary_index ;
230231 }
231232
You can’t perform that action at this time.
0 commit comments