Skip to content

Commit

Permalink
style: CI format update
Browse files Browse the repository at this point in the history
  • Loading branch information
panquez committed Nov 27, 2019
1 parent 68ebee2 commit be2f1bf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/geode/mesh/builder/polyhedral_solid_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace
geode_unused( facet_id );
geode_unused( vertex_id );
OPENGEODE_ASSERT( vertex_id < solid.nb_polyhedron_facet_vertices(
{ polyhedron_id, facet_id } ),
{ polyhedron_id, facet_id } ),
"[check_polyhedron_facet_vertex_id] Trying to access an invalid "
"polyhedron facet vertex" );
}
Expand Down
15 changes: 7 additions & 8 deletions src/geode/mesh/core/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,13 @@ namespace geode
public:
explicit Impl( Graph& graph )
: edges_around_vertex_(
graph.vertex_attribute_manager()
.template find_or_create_attribute< VariableAttribute,
std::vector< EdgeVertex > >(
"edges_around_vertex", [] {
std::vector< EdgeVertex > edges;
edges.reserve( 2 );
return edges;
}() ) )
graph.vertex_attribute_manager()
.template find_or_create_attribute< VariableAttribute,
std::vector< EdgeVertex > >( "edges_around_vertex", [] {
std::vector< EdgeVertex > edges;
edges.reserve( 2 );
return edges;
}() ) )
{
}

Expand Down
8 changes: 4 additions & 4 deletions src/geode/mesh/core/polygonal_surface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ namespace geode
public:
explicit Impl( PolygonalSurfaceBase& surface )
: polygon_around_vertex_(
surface.vertex_attribute_manager()
.template find_or_create_attribute< VariableAttribute,
PolygonVertex >(
"polygon_around_vertex", PolygonVertex{} ) )
surface.vertex_attribute_manager()
.template find_or_create_attribute< VariableAttribute,
PolygonVertex >(
"polygon_around_vertex", PolygonVertex{} ) )
{
}

Expand Down
10 changes: 5 additions & 5 deletions src/geode/mesh/core/polyhedral_solid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace
geode_unused( facet_id );
geode_unused( vertex_id );
OPENGEODE_ASSERT( vertex_id < solid.nb_polyhedron_facet_vertices(
{ polyhedron_id, facet_id } ),
{ polyhedron_id, facet_id } ),
"[check_polyhedron_facet_vertex_id] Trying to access an invalid "
"polyhedron facet vertex" );
}
Expand All @@ -106,10 +106,10 @@ namespace geode
public:
explicit Impl( PolyhedralSolid& solid )
: polyhedron_around_vertex_(
solid.vertex_attribute_manager()
.template find_or_create_attribute< VariableAttribute,
PolyhedronVertex >(
"polyhedron_around_vertex", PolyhedronVertex{} ) )
solid.vertex_attribute_manager()
.template find_or_create_attribute< VariableAttribute,
PolyhedronVertex >(
"polyhedron_around_vertex", PolyhedronVertex{} ) )
{
}

Expand Down

0 comments on commit be2f1bf

Please sign in to comment.