Skip to content

Commit 862f94b

Browse files
committed
Rename
Signed-off-by: Megidd <[email protected]>
1 parent 39dde5e commit 862f94b

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

openvdb/openvdb/tools/VolumeToElements.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace tools {
3636
////////////////////////////////////////
3737

3838

39-
// Wrapper functions for the VolumeToTet converter
39+
// Wrapper functions for the VolumeToElements converter
4040

4141

4242
/// @brief Uniformly process any scalar grid that has a continuous isosurface.
@@ -50,7 +50,7 @@ namespace tools {
5050
/// @throw TypeError if @a grid does not have a scalar value type
5151
template<typename GridType>
5252
void
53-
volumeToTet(
53+
volumeToElements(
5454
const GridType& grid,
5555
std::vector<Vec3s>& points,
5656
std::vector<Vec4I>& tets,
@@ -62,11 +62,11 @@ volumeToTet(
6262

6363

6464
/// @brief Process any scalar grid that has a continuous isosurface.
65-
struct VolumeToTet
65+
struct VolumeToElements
6666
{
6767

6868
/// @param isovalue Determines which isosurface to process.
69-
VolumeToTet(double isovalue = 0);
69+
VolumeToElements(double isovalue = 0);
7070

7171
//////////
7272

@@ -78,15 +78,15 @@ struct VolumeToTet
7878

7979
private:
8080
// Disallow copying
81-
VolumeToTet(const VolumeToTet&);
82-
VolumeToTet& operator=(const VolumeToTet&);
81+
VolumeToElements(const VolumeToElements&);
82+
VolumeToElements& operator=(const VolumeToElements&);
8383

8484
PointList mPoints;
8585
ElementPoolList mElements;
8686

8787
double mIsovalue;
8888

89-
}; // struct VolumeToTet
89+
}; // struct VolumeToElements
9090

9191

9292
////////////////////////////////////////////////////////////////////////////////
@@ -102,7 +102,7 @@ namespace volume_to_tet_internal {
102102

103103
template<typename GridType>
104104
void
105-
doVolumeToTet(
105+
doVolumeToElements(
106106
const GridType& grid,
107107
std::vector<Vec3s>& points,
108108
std::vector<Vec4I>& tets,
@@ -124,7 +124,7 @@ doVolumeToTet(
124124

125125

126126
inline
127-
VolumeToTet::VolumeToTet(double isovalue)
127+
VolumeToElements::VolumeToElements(double isovalue)
128128
: mPoints(nullptr)
129129
, mElements()
130130
, mIsovalue(isovalue)
@@ -134,7 +134,7 @@ VolumeToTet::VolumeToTet(double isovalue)
134134

135135
template<typename InputGridType>
136136
inline void
137-
VolumeToTet::operator()(const InputGridType& inputGrid)
137+
VolumeToElements::operator()(const InputGridType& inputGrid)
138138
{
139139
}
140140

@@ -143,25 +143,25 @@ VolumeToTet::operator()(const InputGridType& inputGrid)
143143

144144

145145
template<typename GridType>
146-
void volumeToTet(
146+
void volumeToElements(
147147
const GridType& grid,
148148
std::vector<Vec3s>& points,
149149
std::vector<Vec4I>& tets,
150150
std::vector<Vec8I>& hexs,
151151
double isovalue)
152152
{
153-
volume_to_tet_internal::doVolumeToTet(grid, points, tets, hexs, isovalue);
153+
volume_to_tet_internal::doVolumeToElements(grid, points, tets, hexs, isovalue);
154154
}
155155

156156
template<typename GridType>
157-
void volumeToTet(
157+
void volumeToElements(
158158
const GridType& grid,
159159
std::vector<Vec3s>& points,
160160
std::vector<Vec8I>& hexs,
161161
double isovalue)
162162
{
163163
std::vector<Vec4I> tets;
164-
volumeToTet(grid, points, tets, hexs, isovalue);
164+
volumeToElements(grid, points, tets, hexs, isovalue);
165165
}
166166

167167

@@ -172,17 +172,17 @@ void volumeToTet(
172172

173173
#ifdef OPENVDB_USE_EXPLICIT_INSTANTIATION
174174

175-
#ifdef OPENVDB_INSTANTIATE_VOLUMETOTET
175+
#ifdef OPENVDB_INSTANTIATE_VOLUMETOELEMENTS
176176
#include <openvdb/util/ExplicitInstantiation.h>
177177
#endif
178178

179179
#define _FUNCTION(TreeT) \
180-
void volumeToTet(const Grid<TreeT>&, std::vector<Vec3s>&, std::vector<Vec8I>&, double)
180+
void volumeToElements(const Grid<TreeT>&, std::vector<Vec3s>&, std::vector<Vec8I>&, double)
181181
OPENVDB_NUMERIC_TREE_INSTANTIATE(_FUNCTION)
182182
#undef _FUNCTION
183183

184184
#define _FUNCTION(TreeT) \
185-
void volumeToTet(const Grid<TreeT>&, std::vector<Vec3s>&, std::vector<Vec4I>&, std::vector<Vec8I>&, double)
185+
void volumeToElements(const Grid<TreeT>&, std::vector<Vec3s>&, std::vector<Vec4I>&, std::vector<Vec8I>&, double)
186186
OPENVDB_NUMERIC_TREE_INSTANTIATE(_FUNCTION)
187187
#undef _FUNCTION
188188

0 commit comments

Comments
 (0)