Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
Windows build: include <array> in QRemesh2Field.cpp; the sculptable texture test prints its handle samples
islandmed6e8dfb5c444b
diff --git a/src/core/QRemesh2Field.cpp b/src/core/QRemesh2Field.cppindex 40344991..3aca7cb6 100644--- a/src/core/QRemesh2Field.cpp+++ b/src/core/QRemesh2Field.cpp@@ -21,6 +21,7 @@#include <cstdlib>#include <algorithm>+#include <array>#include <cmath>#include <numbers>diff --git a/tests/test_sculptable.cpp b/tests/test_sculptable.cppindex 1b753a46..cd277cab 100644--- a/tests/test_sculptable.cpp+++ b/tests/test_sculptable.cpp@@ -381,8 +381,13 @@ TEST(sculptable_texture_and_levels) {if (p.x < 0.85f || std::abs(p.y) > 0.2f) continue;++handle;const glm::vec3 c = linearToSrgb(sampleTextureAt(d.mesh, t, p));- orange += c.x > 0.75f && c.y > 0.35f && c.y < 0.75f && c.z < 0.3f;+ const bool isOrange = c.x > 0.75f && c.y > 0.35f && c.y < 0.75f && c.z < 0.3f;+ orange += isOrange;+ if (!isOrange && handle - orange <= 6)+ std::printf(" handle sample not orange: tri %u at (%.3f %.3f %.3f) colour (%.3f %.3f %.3f)\n", t, p.x, p.y, p.z,+ c.x, c.y, c.z);}+ std::printf(" handle samples %zu, orange %zu\n", handle, orange);CHECK(handle > 10 && orange * 10 >= handle * 8);// The top level follows the scan: no vertex further than 2 voxels from it.const Mesh& scan = d.subtoolMesh(d.findSubtool("Test Mug Scan"));