std::vector< std::vector< int32_t > > classifyTrianglesByTexture(const Mesh &mesh, const TextureView &texture, const RegionColorsView ®ionColors, float threshold, int32_t numSamples)
Classify mesh triangles into regions based on texture colors.
Mesh splitMeshByTextureRegion(const Mesh &mesh, const TextureView &texture, const RegionColorsView ®ionColors, int32_t numBinarySearchSteps)
Split mesh triangles along texture region boundaries.
View into a contiguous RGB texture image (non-owning).