Skip to content

Commit

Permalink
fix(ModelHelpers): memory issue while converting a model to a mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
BotellaA committed Feb 26, 2024
1 parent 1b680c3 commit 2f855ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/geode/model/helpers/convert_to_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ namespace
const auto polyhedra = build_polyhedra( block );
set_polyhedra_adjacency( block, polyhedra );
}
for( const auto& v2uv : model_.vertices() )
for( const auto& uv2v : model_.vertices() )
{
attribute_unique_vertex_->set_value( v2uv.first, v2uv.second );
attribute_unique_vertex_->set_value( uv2v.second, uv2v.first );
}
}

Expand Down Expand Up @@ -345,9 +345,9 @@ namespace
const auto polygons = build_polygons( surface );
set_polygons_adjacency( surface, polygons );
}
for( const auto& v2uv : model_.vertices() )
for( const auto& uv2v : model_.vertices() )
{
attribute_unique_vertex_->set_value( v2uv.first, v2uv.second );
attribute_unique_vertex_->set_value( uv2v.second, uv2v.first );
}
}

Expand Down Expand Up @@ -471,9 +471,9 @@ namespace
{
build_edges( line );
}
for( const auto& v2uv : model_.vertices() )
for( const auto& uv2v : model_.vertices() )
{
attribute_unique_vertex_->set_value( v2uv.first, v2uv.second );
attribute_unique_vertex_->set_value( uv2v.second, uv2v.first );
}
}

Expand Down

0 comments on commit 2f855ae

Please sign in to comment.