Skip to content

Commit 5b38ce8

Browse files
Merge pull request #1133 from Geode-solutions/feat/light-viewable
fix(LightRegularGrid): missing bounding box api
2 parents dc7a442 + 4cf2388 commit 5b38ce8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

include/geode/mesh/core/light_regular_grid.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
namespace geode
3333
{
34+
FORWARD_DECLARATION_DIMENSION_CLASS( BoundingBox );
3435
FORWARD_DECLARATION_DIMENSION_CLASS( Point );
3536
FORWARD_DECLARATION_DIMENSION_CLASS( Vector );
3637
class AttributeManager;
@@ -91,6 +92,8 @@ namespace geode
9192
[[nodiscard]] AttributeManager&
9293
grid_vertex_attribute_manager() const override;
9394

95+
[[nodiscard]] BoundingBox< dimension > bounding_box() const;
96+
9497
private:
9598
friend class bitsery::Access;
9699
template < typename Archive >

src/geode/mesh/core/light_regular_grid.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ namespace geode
187187
return impl_->vertex_attribute_manager();
188188
}
189189

190+
template < index_t dimension >
191+
BoundingBox< dimension > LightRegularGrid< dimension >::bounding_box() const
192+
{
193+
return this->grid_bounding_box();
194+
}
195+
190196
template < index_t dimension >
191197
template < typename Archive >
192198
void LightRegularGrid< dimension >::serialize( Archive& archive )

0 commit comments

Comments
 (0)