Skip to content

Commit

Permalink
Apply prepare changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MelchiorSchuh authored and github-actions[bot] committed Sep 6, 2024
1 parent 65d7e34 commit 5d30798
Show file tree
Hide file tree
Showing 37 changed files with 99 additions and 98 deletions.
2 changes: 1 addition & 1 deletion bindings/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile bindings/python/requirements.in
# pip-compile --pre bindings/python/requirements.in
#
10 changes: 6 additions & 4 deletions include/geode/basic/attribute.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ namespace geode
set_value( std::move( value ) );
}

ConstantAttribute() : ReadOnlyAttribute< T >( AttributeProperties{} ){};
ConstantAttribute()
: ReadOnlyAttribute< T >( AttributeProperties{} ) {};

template < typename Archive >
void serialize( Archive& archive )
Expand Down Expand Up @@ -425,7 +426,8 @@ namespace geode
values_.reserve( 10 );
}

VariableAttribute() : ReadOnlyAttribute< T >( AttributeProperties{} ){};
VariableAttribute()
: ReadOnlyAttribute< T >( AttributeProperties{} ) {};

template < typename Archive >
void serialize( Archive& archive )
Expand Down Expand Up @@ -620,7 +622,7 @@ namespace geode
}

VariableAttribute()
: ReadOnlyAttribute< bool >( AttributeProperties{} ){};
: ReadOnlyAttribute< bool >( AttributeProperties{} ) {};

template < typename Archive >
void serialize( Archive& archive )
Expand Down Expand Up @@ -819,7 +821,7 @@ namespace geode
values_.reserve( 10 );
}

SparseAttribute() : ReadOnlyAttribute< T >( AttributeProperties{} ){};
SparseAttribute() : ReadOnlyAttribute< T >( AttributeProperties{} ) {};

template < typename Archive >
void serialize( Archive& archive )
Expand Down
2 changes: 1 addition & 1 deletion include/geode/model/mixin/builder/topology_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ namespace geode
protected:
explicit TopologyBuilder( Topology& topology )
: RelationshipsBuilder( topology ),
VertexIdentifierBuilder( topology ){};
VertexIdentifierBuilder( topology ) {};
};
} // namespace geode
4 changes: 2 additions & 2 deletions src/geode/basic/cell_array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ namespace geode
CellArray< dimension >::CellArray( CellArray&& ) noexcept = default;

template < index_t dimension >
auto CellArray< dimension >::operator=( CellArray&& ) noexcept
-> CellArray& = default;
auto CellArray< dimension >::operator=(
CellArray&& ) noexcept -> CellArray& = default;

template < index_t dimension >
CellArray< dimension >::~CellArray() = default;
Expand Down
4 changes: 2 additions & 2 deletions src/geode/geometry/basic_objects/circle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ namespace geode
}
Circle::Circle( const Circle& ) = default;
Circle::Circle( const OwnerCircle& other )
: Base(
{ other.plane().normal(), other.plane().origin() }, other.radius() )
: Base( { other.plane().normal(), other.plane().origin() },
other.radius() )
{
}
Circle& Circle::operator=( const Circle& ) = default;
Expand Down
2 changes: 1 addition & 1 deletion src/geode/geometry/basic_objects/infinite_line.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ namespace geode
OwnerInfiniteLine< dimension >::OwnerInfiniteLine(
const Segment< dimension >& segment )
: OwnerInfiniteLine(
segment.normalized_direction(), segment.vertices()[0] )
segment.normalized_direction(), segment.vertices()[0] )
{
}
template < index_t dimension >
Expand Down
6 changes: 3 additions & 3 deletions src/geode/geometry/basic_objects/tetrahedron.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ namespace geode
Tetrahedron::Tetrahedron( const Tetrahedron& other ) noexcept = default;
Tetrahedron::Tetrahedron( const OwnerTetrahedron& other ) noexcept
: Base( other.vertices()[0],
other.vertices()[1],
other.vertices()[2],
other.vertices()[3] )
other.vertices()[1],
other.vertices()[2],
other.vertices()[3] )
{
}
Tetrahedron& Tetrahedron::operator=(
Expand Down
4 changes: 2 additions & 2 deletions src/geode/image/core/raster_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ namespace geode
}

template < index_t dimension >
auto RasterImage< dimension >::cell_indices( index_t index ) const
-> CellIndices
auto RasterImage< dimension >::cell_indices(
index_t index ) const -> CellIndices
{
return impl_->cell_indices( *this, index );
}
Expand Down
2 changes: 1 addition & 1 deletion src/geode/mesh/builder/geode/geode_edged_curve_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace geode
OpenGeodeEdgedCurveBuilder< dimension >::OpenGeodeEdgedCurveBuilder(
VertexSet& vertex_set, MeshBuilderFactoryKey )
: OpenGeodeEdgedCurveBuilder< dimension >(
dynamic_cast< OpenGeodeEdgedCurve< dimension >& >( vertex_set ) )
dynamic_cast< OpenGeodeEdgedCurve< dimension >& >( vertex_set ) )
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace geode
OpenGeodeHybridSolidBuilder< dimension >::OpenGeodeHybridSolidBuilder(
VertexSet& vertex_set, MeshBuilderFactoryKey )
: OpenGeodeHybridSolidBuilder< dimension >(
dynamic_cast< OpenGeodeHybridSolid< dimension >& >( vertex_set ) )
dynamic_cast< OpenGeodeHybridSolid< dimension >& >( vertex_set ) )
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/geode/mesh/builder/geode/geode_point_set_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace geode
OpenGeodePointSetBuilder< dimension >::OpenGeodePointSetBuilder(
VertexSet& vertex_set, MeshBuilderFactoryKey )
: OpenGeodePointSetBuilder< dimension >(
dynamic_cast< OpenGeodePointSet< dimension >& >( vertex_set ) )
dynamic_cast< OpenGeodePointSet< dimension >& >( vertex_set ) )
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ namespace geode
dimension >::OpenGeodePolygonalSurfaceBuilder( VertexSet& vertex_set,
MeshBuilderFactoryKey )
: OpenGeodePolygonalSurfaceBuilder< dimension >(
dynamic_cast< OpenGeodePolygonalSurface< dimension >& >(
vertex_set ) )
dynamic_cast< OpenGeodePolygonalSurface< dimension >& >(
vertex_set ) )
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ namespace geode
dimension >::OpenGeodePolyhedralSolidBuilder( VertexSet& vertex_set,
MeshBuilderFactoryKey )
: OpenGeodePolyhedralSolidBuilder< dimension >(
dynamic_cast< OpenGeodePolyhedralSolid< dimension >& >(
vertex_set ) )
dynamic_cast< OpenGeodePolyhedralSolid< dimension >& >(
vertex_set ) )
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace geode
OpenGeodeRegularGridBuilder< 3 >::OpenGeodeRegularGridBuilder(
VertexSet& vertex_set, MeshBuilderFactoryKey )
: OpenGeodeRegularGridBuilder< 3 >(
dynamic_cast< OpenGeodeRegularGrid< 3 >& >( vertex_set ) )
dynamic_cast< OpenGeodeRegularGrid< 3 >& >( vertex_set ) )
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace geode
OpenGeodeRegularGridBuilder< 2 >::OpenGeodeRegularGridBuilder(
VertexSet& vertex_set, MeshBuilderFactoryKey )
: OpenGeodeRegularGridBuilder< 2 >(
dynamic_cast< OpenGeodeRegularGrid< 2 >& >( vertex_set ) )
dynamic_cast< OpenGeodeRegularGrid< 2 >& >( vertex_set ) )
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ namespace geode
dimension >::OpenGeodeTetrahedralSolidBuilder( VertexSet& vertex_set,
MeshBuilderFactoryKey )
: OpenGeodeTetrahedralSolidBuilder< dimension >(
dynamic_cast< OpenGeodeTetrahedralSolid< dimension >& >(
vertex_set ) )
dynamic_cast< OpenGeodeTetrahedralSolid< dimension >& >(
vertex_set ) )
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ namespace geode
dimension >::OpenGeodeTriangulatedSurfaceBuilder( VertexSet& vertex_set,
MeshBuilderFactoryKey )
: OpenGeodeTriangulatedSurfaceBuilder< dimension >(
dynamic_cast< OpenGeodeTriangulatedSurface< dimension >& >(
vertex_set ) )
dynamic_cast< OpenGeodeTriangulatedSurface< dimension >& >(
vertex_set ) )
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/geode/mesh/builder/geode/geode_vertex_set_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace geode
OpenGeodeVertexSetBuilder::OpenGeodeVertexSetBuilder(
VertexSet& vertex_set, MeshBuilderFactoryKey )
: OpenGeodeVertexSetBuilder(
dynamic_cast< OpenGeodeVertexSet& >( vertex_set ) )
dynamic_cast< OpenGeodeVertexSet& >( vertex_set ) )
{
}

Expand Down
8 changes: 4 additions & 4 deletions src/geode/mesh/core/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ namespace geode
public:
explicit Impl( Graph& graph )
: edges_around_vertex_(
graph.vertex_attribute_manager()
.template find_or_create_attribute< VariableAttribute,
EdgesAroundVertex >(
ATTRIBUTE_NAME, EdgesAroundVertex{} ) )
graph.vertex_attribute_manager()
.template find_or_create_attribute< VariableAttribute,
EdgesAroundVertex >(
ATTRIBUTE_NAME, EdgesAroundVertex{} ) )
{
}

Expand Down
12 changes: 6 additions & 6 deletions src/geode/mesh/core/grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ namespace geode
}

template < index_t dimension >
auto Grid< dimension >::cell_vertices( const CellIndices& cell_id ) const
-> CellVertices
auto Grid< dimension >::cell_vertices(
const CellIndices& cell_id ) const -> CellVertices
{
return impl_->cell_vertices( cell_id );
}
Expand Down Expand Up @@ -572,15 +572,15 @@ namespace geode
}

template < index_t dimension >
auto Grid< dimension >::cells( const Point< dimension >& query ) const
-> CellsAroundVertex
auto Grid< dimension >::cells(
const Point< dimension >& query ) const -> CellsAroundVertex
{
return impl_->cells( *this, query );
}

template < index_t dimension >
auto Grid< dimension >::cells_around( VertexIndices vertex_indices ) const
-> CellsAroundVertex
auto Grid< dimension >::cells_around(
VertexIndices vertex_indices ) const -> CellsAroundVertex
{
return impl_->cells_around( *this, vertex_indices );
}
Expand Down
8 changes: 4 additions & 4 deletions src/geode/mesh/core/light_regular_grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ namespace geode
}

template < index_t dimension >
auto LightRegularGrid< dimension >::vertex_indices( index_t index ) const
-> VertexIndices
auto LightRegularGrid< dimension >::vertex_indices(
index_t index ) const -> VertexIndices
{
return impl_->vertex_indices( *this, index );
}
Expand All @@ -136,8 +136,8 @@ namespace geode
}

template < index_t dimension >
auto LightRegularGrid< dimension >::cell_indices( index_t index ) const
-> CellIndices
auto LightRegularGrid< dimension >::cell_indices(
index_t index ) const -> CellIndices
{
return impl_->cell_indices( *this, index );
}
Expand Down
8 changes: 4 additions & 4 deletions src/geode/mesh/core/solid_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,10 @@ namespace geode
public:
explicit Impl( SolidMesh& 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{} ) ),
polyhedra_around_vertex_(
solid.vertex_attribute_manager()
.template find_or_create_attribute< VariableAttribute,
Expand Down
8 changes: 4 additions & 4 deletions src/geode/mesh/core/surface_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ namespace geode
public:
Impl( SurfaceMesh& 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{} ) ),
polygons_around_vertex_(
surface.vertex_attribute_manager()
.template find_or_create_attribute< VariableAttribute,
Expand Down
4 changes: 2 additions & 2 deletions src/geode/mesh/helpers/detail/component_identifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ namespace geode
public:
explicit Impl( const EdgedCurve< dimension >& curve )
: Propagator< EdgedCurve< dimension > >(
curve, curve.nb_edges() )
curve, curve.nb_edges() )
{
}

Expand Down Expand Up @@ -256,7 +256,7 @@ namespace geode
public:
explicit Impl( const SurfaceMesh< dimension >& surface )
: Propagator< SurfaceMesh< dimension > >(
surface, surface.nb_polygons() )
surface, surface.nb_polygons() )
{
}

Expand Down
4 changes: 2 additions & 2 deletions src/geode/mesh/helpers/detail/curve_merger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ namespace geode
}

template < index_t dimension >
auto EdgedCurveMerger< dimension >::edge_origins( index_t edge ) const
-> const EdgeOrigins&
auto EdgedCurveMerger< dimension >::edge_origins(
index_t edge ) const -> const EdgeOrigins&
{
return impl_->edge_origins( edge );
}
Expand Down
4 changes: 2 additions & 2 deletions src/geode/mesh/helpers/detail/vertex_merger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ namespace geode
}

template < typename Mesh >
auto VertexMerger< Mesh >::vertex_origins( index_t vertex ) const
-> const VertexOrigins&
auto VertexMerger< Mesh >::vertex_origins(
index_t vertex ) const -> const VertexOrigins&
{
return impl_->vertex_origins( vertex );
}
Expand Down
2 changes: 1 addition & 1 deletion src/geode/model/helpers/simplicial_brep_creator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace geode
public:
Impl( BRep& brep, std::vector< Point3D > unique_points )
: internal::SimplicialModelCreator< BRep >(
brep, std::move( unique_points ) )
brep, std::move( unique_points ) )
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/geode/model/helpers/simplicial_section_creator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace geode
public:
Impl( Section& section, std::vector< Point2D > unique_points )
: internal::SimplicialModelCreator< Section >(
section, std::move( unique_points ) )
section, std::move( unique_points ) )
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/geode/model/mixin/core/block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace geode
template < index_t dimension >
Block< dimension >::Block()
: Block( MeshFactory::default_impl(
PolyhedralSolid< dimension >::type_name_static() ) )
PolyhedralSolid< dimension >::type_name_static() ) )
{
}

Expand Down
4 changes: 2 additions & 2 deletions src/geode/model/mixin/core/blocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ namespace geode
Blocks< dimension >::~Blocks() = default;

template < index_t dimension >
auto Blocks< dimension >::operator=( Blocks&& ) noexcept
-> Blocks& = default;
auto Blocks< dimension >::operator=(
Blocks&& ) noexcept -> Blocks& = default;

template < index_t dimension >
index_t Blocks< dimension >::nb_blocks() const
Expand Down
4 changes: 2 additions & 2 deletions src/geode/model/mixin/core/corner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ namespace geode
}

template < index_t dimension >
auto Corner< dimension >::modifiable_mesh( CornersBuilderKey /*unused*/ )
-> Mesh&
auto Corner< dimension >::modifiable_mesh(
CornersBuilderKey /*unused*/ ) -> Mesh&
{
return modifiable_mesh();
}
Expand Down
Loading

0 comments on commit 5d30798

Please sign in to comment.