Cleanup: Remove unused function

This commit is contained in:
Hans Goudey 2022-08-06 14:24:31 -05:00
parent fecef2ae74
commit ce352e6d00
2 changed files with 0 additions and 14 deletions

View File

@ -13,7 +13,6 @@
#include "DNA_meshdata_types.h"
#include "BKE_attribute.h"
#include "BKE_attribute.hh"
struct Mesh;
struct BVHTreeFromMesh;
@ -77,10 +76,6 @@ class MeshAttributeInterpolator {
eAttributeMapMode mode,
const GMutableSpan dst);
void sample_attribute(const GAttributeReader &src_attribute,
GSpanAttributeWriter &dst_attribute,
eAttributeMapMode mode);
protected:
Span<float3> ensure_barycentric_coords();
Span<float3> ensure_nearest_weights();

View File

@ -252,15 +252,6 @@ void MeshAttributeInterpolator::sample_data(const GVArray &src,
}
}
void MeshAttributeInterpolator::sample_attribute(const GAttributeReader &src_attribute,
GSpanAttributeWriter &dst_attribute,
eAttributeMapMode mode)
{
if (src_attribute && dst_attribute) {
this->sample_data(src_attribute.varray, src_attribute.domain, mode, dst_attribute.span);
}
}
int sample_surface_points_spherical(RandomNumberGenerator &rng,
const Mesh &mesh,
const Span<int> looptri_indices_to_sample,