2525
2626#include < geode/geometry/point.h>
2727
28- #include < geode/mesh/core/regular_grid_solid.h>
29- #include < geode/mesh/core/regular_grid_surface.h>
28+ #include < geode/mesh/core/grid.h>
3029
3130namespace
3231{
@@ -41,7 +40,7 @@ namespace
4140
4241 template < geode::index_t dimension >
4342 geode::Point< dimension > local_point_coordinates (
44- const geode::RegularGrid < dimension >& grid,
43+ const geode::Grid < dimension >& grid,
4544 const geode::Point< dimension >& point,
4645 const geode::GridCellIndices< dimension >& cell_id )
4746 {
@@ -69,7 +68,7 @@ namespace geode
6968 namespace detail
7069 {
7170 template < index_t dimension >
72- double shape_function_value ( const RegularGrid < dimension >& grid,
71+ double shape_function_value ( const Grid < dimension >& grid,
7372 const GridCellIndices< dimension >& cell_id,
7473 local_index_t node_id,
7574 const Point< dimension >& point )
@@ -91,35 +90,16 @@ namespace geode
9190 return shape_function_value;
9291 }
9392
94- template < index_t dimension >
95- GridVertexIndices< dimension > cell_node_index (
96- const GridCellIndices< dimension >& cell_id, local_index_t node_id )
97- {
98- auto node_index = cell_id;
99- for ( const auto d : LRange{ dimension } )
100- {
101- if ( !node_is_on_axis_origin< dimension >( node_id, d ) )
102- {
103- node_index[d] += 1 ;
104- }
105- }
106- return node_index;
107- }
108-
10993 template double opengeode_mesh_api shape_function_value< 2 >(
110- const RegularGrid < 2 >& grid,
94+ const Grid < 2 >& grid,
11195 const GridCellIndices< 2 >& cell_id,
11296 local_index_t node_id,
11397 const Point< 2 >& point );
114- template GridVertexIndices< 2 > opengeode_mesh_api cell_node_index< 2 >(
115- const GridCellIndices< 2 >& cell_id, local_index_t node_id );
11698
11799 template double opengeode_mesh_api shape_function_value< 3 >(
118- const RegularGrid < 3 >& grid,
100+ const Grid < 3 >& grid,
119101 const GridCellIndices< 3 >& cell_id,
120102 local_index_t node_id,
121103 const Point< 3 >& point );
122- template GridVertexIndices< 3 > opengeode_mesh_api cell_node_index< 3 >(
123- const GridCellIndices< 3 >& cell_id, local_index_t node_id );
124104 } // namespace detail
125105} // namespace geode
0 commit comments