diff --git a/openvdb/openvdb/tools/VolumeToElements.h b/openvdb/openvdb/tools/VolumeToElements.h index fb9b1f1994..b6148cd6cb 100644 --- a/openvdb/openvdb/tools/VolumeToElements.h +++ b/openvdb/openvdb/tools/VolumeToElements.h @@ -36,7 +36,7 @@ namespace tools { //////////////////////////////////////// -// Wrapper functions for the VolumeToTet converter +// Wrapper functions for the VolumeToElements converter /// @brief Uniformly process any scalar grid that has a continuous isosurface. @@ -50,7 +50,7 @@ namespace tools { /// @throw TypeError if @a grid does not have a scalar value type template void -volumeToTet( +volumeToElements( const GridType& grid, std::vector& points, std::vector& tets, @@ -62,11 +62,11 @@ volumeToTet( /// @brief Process any scalar grid that has a continuous isosurface. -struct VolumeToTet +struct VolumeToElements { /// @param isovalue Determines which isosurface to process. - VolumeToTet(double isovalue = 0); + VolumeToElements(double isovalue = 0); ////////// @@ -78,15 +78,15 @@ struct VolumeToTet private: // Disallow copying - VolumeToTet(const VolumeToTet&); - VolumeToTet& operator=(const VolumeToTet&); + VolumeToElements(const VolumeToElements&); + VolumeToElements& operator=(const VolumeToElements&); PointList mPoints; ElementPoolList mElements; double mIsovalue; -}; // struct VolumeToTet +}; // struct VolumeToElements //////////////////////////////////////////////////////////////////////////////// @@ -102,7 +102,7 @@ namespace volume_to_tet_internal { template void -doVolumeToTet( +doVolumeToElements( const GridType& grid, std::vector& points, std::vector& tets, @@ -124,7 +124,7 @@ doVolumeToTet( inline -VolumeToTet::VolumeToTet(double isovalue) +VolumeToElements::VolumeToElements(double isovalue) : mPoints(nullptr) , mElements() , mIsovalue(isovalue) @@ -134,7 +134,7 @@ VolumeToTet::VolumeToTet(double isovalue) template inline void -VolumeToTet::operator()(const InputGridType& inputGrid) +VolumeToElements::operator()(const InputGridType& inputGrid) { } @@ -143,25 +143,25 @@ VolumeToTet::operator()(const InputGridType& inputGrid) template -void volumeToTet( +void volumeToElements( const GridType& grid, std::vector& points, std::vector& tets, std::vector& hexs, double isovalue) { - volume_to_tet_internal::doVolumeToTet(grid, points, tets, hexs, isovalue); + volume_to_tet_internal::doVolumeToElements(grid, points, tets, hexs, isovalue); } template -void volumeToTet( +void volumeToElements( const GridType& grid, std::vector& points, std::vector& hexs, double isovalue) { std::vector tets; - volumeToTet(grid, points, tets, hexs, isovalue); + volumeToElements(grid, points, tets, hexs, isovalue); } @@ -172,17 +172,17 @@ void volumeToTet( #ifdef OPENVDB_USE_EXPLICIT_INSTANTIATION -#ifdef OPENVDB_INSTANTIATE_VOLUMETOTET +#ifdef OPENVDB_INSTANTIATE_VOLUMETOELEMENTS #include #endif #define _FUNCTION(TreeT) \ - void volumeToTet(const Grid&, std::vector&, std::vector&, double) + void volumeToElements(const Grid&, std::vector&, std::vector&, double) OPENVDB_NUMERIC_TREE_INSTANTIATE(_FUNCTION) #undef _FUNCTION #define _FUNCTION(TreeT) \ - void volumeToTet(const Grid&, std::vector&, std::vector&, std::vector&, double) + void volumeToElements(const Grid&, std::vector&, std::vector&, std::vector&, double) OPENVDB_NUMERIC_TREE_INSTANTIATE(_FUNCTION) #undef _FUNCTION