Files
OrcaSlicer/src/libslic3r/TriangleMeshDeal.hpp
T
Erkan Ozgur Yilmaz d709eb251c Keep Paint on Sharp Edges After Subdivision Mesh (#16484)
Subdivision mesh now keeps paint on sharp edges and corners when "Keep painted feature after mesh change" is on. The paint is remapped onto the subdivided mesh before its vertices are smoothed. That mesh still lies on the old surface, and the smoothed mesh has the same triangles, so the paint data stays valid for it. With the preference off, nothing changes. The menu item no longer says "(Lost color)".
2026-10-28 10:06:29 -05:00

14 lines
471 B
C++

#pragma once
#include "TriangleMesh.hpp"
namespace Slic3r {
class TriangleMeshDeal
{
public:
// Loop subdivision: every triangle is split into four and every vertex is moved to smooth the surface.
// `unsmoothed`, when given, receives the same triangles before the vertices are moved, so it lies on the input surface.
static TriangleMesh smooth_triangle_mesh(const TriangleMesh &mesh, bool &ok, TriangleMesh *unsmoothed = nullptr);
};
} // namespace Slic3r