Isotropic Remeshing
Iteratively splits long edges, collapses short ones, flips edges toward valence six and relaxes vertices tangentially, driving a triangle mesh to near-equilateral triangles of a target edge length.
In the family Geometry, meshing & signed distance fields, remeshing
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | |
| Babylon.js 9.38.0 | None found | |
| Godot 4.7 | None found | No built-in isotropic surface remesher. |
| Unity | None found | |
| Unreal 5.7 | Built in | Modeling Mode > Mesh > Remesh (and GeometryScriptRemeshOptions) docs |
| Blender 5.2 | None found | |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Pick a target edge length L. Then loop: (1) split every edge longer than 4/3 L at its midpoint; (2) collapse every edge shorter than 4/5 L, unless that makes a longer edge; (3) flip edges when doing so reduces total deviation of vertex valence from six (four on the boundary); (4) move each vertex a step toward the centroid of its neighbours, projected onto the tangent plane; (5) reproject vertices back onto the original surface so the shape does not drift. A few iterations suffice. Feature edges and boundaries are pinned or only moved along their curve. Adaptive variants make L depend on curvature.
When to choose it
Reach for it when
- marching cubes output has thin sliver triangles
- mesh triangles vary wildly in size
- simulation blows up on badly shaped triangles
- need even triangle size before sculpting or smoothing
- want near-equilateral triangles at a target edge length
Choose it before simulation, smoothing, sculpting or parametrization when you need triangles of even size and shape, for example to fix marching-cubes slivers. Prefer Quadric Error Metric Simplification when only fewer triangles matter, Instant Field-Aligned Meshes or QuadriFlow when you want a quad mesh with aligned edge flow.
Field marks
- Sharp features blur or get eaten unless feature edges are detected and constrained
- Tangential relaxation can drift thin structures without proper reprojection
- Does not respect existing UVs; seams must be pinned
- A uniform target length wastes triangles on flat areas and under-resolves fine details
Presets
Isotropic Remeshing — skinny stretched triangles (left) vs uniform equilateral valence-6 mesh (right)
{
"P_TARGET_EDGE": 11,
"P_WIRE_VIS": 1,
"P_ROT_SPEED": 0.7,
"P_SPLIT": 0.48
}Show GLSL (113 lines)
const float P_TARGET_EDGE = 11.0; // P Target Edge Inv [6.0, 20.0, 1.0]
const float P_WIRE_VIS = 1.0; // P Wire Contrast [0.2, 1.5, 0.05]
const float P_ROT_SPEED = 0.70; // P Spin Speed [0.0, 2.2, 0.05]
const float P_SPLIT = 0.48; // P Skinny / Isotropic [0.0, 1.0, 0.02]
mat2 rot2(float a) { float c = cos(a), s = sin(a); return mat2(c, -s, s, c); }
float sdTorus(vec3 p, vec2 t) {
vec2 q = vec2(length(p.xz) - t.x, p.y);
return length(q) - t.y;
}
// Sculpted saddle torus-peanut manifold where naive UV triangulation creates extreme aspect-ratio slivers
float mapManifold(vec3 p, float spin) {
vec3 q = p;
q.xz = rot2(spin * 0.55) * q.xz;
q.xy = rot2(0.52) * q.xy;
float dTor = sdTorus(q, vec2(0.54, 0.25 + 0.04 * sin(atan(q.z, q.x) * 3.0)));
return dTor * 0.85;
}
vec3 calcNormal(vec3 p, float spin) {
vec2 e = vec2(0.0020, 0.0);
return normalize(vec3(
mapManifold(p + e.xyy, spin) - mapManifold(p - e.xyy, spin),
mapManifold(p + e.yxy, spin) - mapManifold(p - e.yxy, spin),
mapManifold(p + e.yyx, spin) - mapManifold(p - e.yyx, spin)
));
}
// Equilateral triangular lattice wireframe in 2D tangent space (valence-6 uniform triangles!)
float equilateralWire(vec2 p) {
// Skew into 60-degree simplex lattice
vec2 q = vec2(p.x - p.y * 0.57735027, p.y * 1.15470054);
vec2 f = fract(q);
float d1 = min(f.x, 1.0 - f.x);
float d2 = min(f.y, 1.0 - f.y);
float d3 = abs(f.x + f.y - 1.0) * 0.7071;
return smoothstep(0.055, 0.012, min(min(d1, d2), d3));
}
vec3 aces(vec3 x) {
x = max(x, 0.0);
return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
float screenX = fragCoord.x / max(iResolution.x, 1.0);
float split = clamp(P_SPLIT, 0.0, 1.0);
bool isIso = screenX >= split;
float freq = clamp(floor(P_TARGET_EDGE + 0.5), 6.0, 22.0);
float wireVis = clamp(P_WIRE_VIS, 0.1, 1.5);
float spin = iTime * max(P_ROT_SPEED, 0.0);
vec3 ro = vec3(0.0, 0.04, 2.38);
vec3 rd = normalize(vec3(uv, -1.55));
vec3 col = mix(vec3(0.025, 0.035, 0.058), vec3(0.072, 0.092, 0.140), smoothstep(-0.55, 0.55, uv.y));
float t = 0.0;
bool hit = false;
for (int i = 0; i < 64; i++) {
float d = mapManifold(ro + rd * t, spin);
if (d < 0.002) { hit = true; break; }
t += d;
if (t > 7.5) break;
}
if (hit) {
vec3 p = ro + rd * t;
vec3 n = calcNormal(p, spin);
vec3 objP = p;
objP.xz = rot2(spin * 0.55) * objP.xz;
objP.xy = rot2(0.52) * objP.xy;
// Toroidal angles (u around major circle, v around minor tube)
float uAng = atan(objP.z, objP.x);
float rMaj = length(objP.xz) - 0.54;
float vAng = atan(objP.y, rMaj);
vec3 l1 = normalize(vec3(0.58, 0.82, 0.54));
vec3 l2 = normalize(vec3(-0.72, -0.22, 0.50));
float diff = max(dot(n, l1), 0.0) * 0.85 + max(dot(n, l2), 0.0) * 0.25;
float spec = pow(max(dot(n, normalize(l1 - rd)), 0.0), 48.0);
if (!isIso) {
// Left: Raw non-uniform mesh with skinny stretched sliver triangles (aspect ratio > 4:1)
vec2 stretched = vec2(uAng * 0.85 * freq / 3.1415926 + sin(vAng * 2.0) * 0.45, vAng * 3.8 * freq / 6.2831853);
// Irregular vertex jitter creating pinched high-valence hubs & thin slivers
stretched.x += 0.35 * sin(vAng * 5.0 + uAng * 2.0);
float wireBad = equilateralWire(stretched);
float badQuality = clamp(0.45 + 0.55 * abs(sin(uAng * 2.0 + vAng * 3.0)), 0.0, 1.0);
vec3 qualityCol = mix(vec3(0.92, 0.58, 0.18), vec3(0.94, 0.24, 0.20), badQuality);
col = qualityCol * (0.28 + 0.82 * diff) + vec3(0.95) * spec * 0.40;
col = mix(col, vec3(0.14, 0.04, 0.04), wireBad * 0.78 * min(wireVis, 1.2));
} else {
// Right: Isotropic remeshing (arc-length scaled equal-edge equilateral triangles, valence-6!)
// Arc-length around major circle ~ 2*pi*0.54, around tube ~ 2*pi*0.25 => exact 2.16:1 ratio!
vec2 isoCoord = vec2(uAng * (freq * 2.16) / 6.2831853, vAng * freq / 6.2831853);
float wireIso = equilateralWire(isoCoord);
vec3 goodCol = vec3(0.16, 0.78, 0.68);
col = goodCol * (0.28 + 0.82 * diff) + vec3(0.95) * spec * 0.50;
col = mix(col, vec3(0.03, 0.12, 0.14), wireIso * 0.72 * min(wireVis, 1.2));
}
}
float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));
col = mix(col, vec3(0.95, 0.97, 1.0), sep);
fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}Attribution: MIT — written for this index.
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| isotropic-remeshing-live | Tesla T4 1920x1080 | 19.4× baseline (moderate) · 0.601 ms / 0.638 ms | opengl-timer-query · 36 frames · GPU Weight Atlas · Colab T4 sweep |
| isotropic-remeshing-live | NVIDIA L4 1920x1080 | 15.9× baseline (moderate) · 0.253 ms / 0.264 ms · 2.4× faster on L4 | opengl-timer-query · Cross-architecture validation |
| isotropic-remeshing-live | NVIDIA A100-SXM4-40GB 1920x1080 | 11.5× baseline (moderate) · 0.330 ms / 0.334 ms · 1.8× faster on A100 | opengl-timer-query · Cross-architecture validation |
Crosses
- Watertight scan-to-simulation pipeline via Poisson reconstruction and isotropic remeshing: Cleaning the skinny marching-cubes sliver triangles produced by screened Poisson surface reconstruction with Botsch-Kobbelt isotropic remeshing turns raw oriented point-cloud scans directly into simulation-ready, nearly equilateral watertight meshes.
- three-mesh-bvh: A BVH accelerates the closest-point reprojection back onto the source surface.
Sources
- primaryMario Botsch, Leif Kobbelt (2004). A remeshing approach to multiresolution modeling. Proceedings of the 2004 Eurographics/ACM SIGGRAPH symposium on Geometry processing.Verified via crossref · 2026-11-29doi:10.1145/1057432.1057457
- implementationpmp-library (2017). pmp-library/pmp-library. The Polygon Mesh Processing LibraryGitHub API · license MIT · 2026-11-29