Poisson Surface Reconstruction × Isotropic Remeshing
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.
Open in StudioReproduced32.1× · 0.994 ms
Verified proof

Split-screen WebGL2 proof comparing raw screened Poisson marching-cubes output riddled with grazing-octree sliver triangles and shading kinks (left) against Botsch-Kobbelt isotropic remeshing projected back onto the smooth Poisson implicit field for uniform equilateral valence-6 triangles (right).
Chromium Headless ANGLE/SwiftShader WebGL2 · 512x512 · replaces skinny octree sliver triangles from Poisson reconstruction with uniform equilateral valence-6 triangles projected cleanly onto the implicit surface
Show GLSL proof (146 lines)
const float P_TARGET_L = 1.00; // P Target Edge Length [0.5, 1.8, 0.05]
const float P_WIRE_VIS = 0.72; // P Mesh Wireframe [0.0, 1.0, 0.05]
const float P_QUAL_HEAT = 0.65; // P Sliver Quality Map [0.0, 1.0, 0.05]
const float P_TURN_SPEED = 0.45; // P Turntable Speed [0.0, 1.2, 0.05]
mat2 rot2(float a) {
float c = cos(a), s = sin(a);
return mat2(c, -s, s, c);
}
// Watertight screened Poisson implicit indicator surface chi(x) = 0 (twisted sculptural torus-shell)
float poissonChi(vec3 p) {
float a = atan(p.z, p.x);
vec2 q = vec2(length(p.xz) - 0.62, p.y);
q = rot2(a * 1.5) * q;
float rib = 0.055 * cos(atan(q.y, q.x) * 3.0);
float dTube = length(q) - (0.26 + rib);
// Central organic bridge joining shell lobes
float bridge = length(p * vec3(1.4, 2.2, 1.4)) - 0.34;
float h = clamp(0.5 + 0.5 * (bridge - dTube) / 0.14, 0.0, 1.0);
return mix(bridge, dTube, h) - 0.14 * h * (1.0 - h);
}
vec3 poissonNormal(vec3 p) {
vec2 e = vec2(0.0025, -0.0025);
return normalize(
e.xyy * poissonChi(p + e.xyy) +
e.yyx * poissonChi(p + e.yyx) +
e.yxy * poissonChi(p + e.yxy) +
e.xxx * poissonChi(p + e.xxx)
);
}
// Equilateral valence-6 triangular lattice distance in local 2D surface coordinates
float eqTriWire(vec2 uv, float scale) {
vec2 p = uv * scale;
// Skew into 60-degree equilateral triangle lattice
float k = 0.57735027;
vec2 g = vec2(p.x - p.y * k, p.y * 2.0 * k);
vec2 f = fract(g);
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 min(min(d1, d2), d3);
}
// Grazing octree-cell marching-cubes sliver triangulation metric & wireframe
void octreeSliverMetric(vec3 wp, vec3 N, float scale, out float wireD, out float sliverBadness) {
vec3 q = wp * scale;
vec3 f = fract(q);
float dx = min(f.x, 1.0 - f.x);
float dy = min(f.y, 1.0 - f.y);
float dz = min(f.z, 1.0 - f.z);
// Octree marching-cubes slices create needle slivers wherever a face grazes axis planes
float axisMin = min(dx, min(dy, dz));
float diag = min(abs(f.x - f.y), min(abs(f.y - f.z), abs(f.z - f.x))) * 0.65;
wireD = min(axisMin, diag);
// Aspect ratio spikes wherever surface normal is nearly aligned with one grid plane
vec3 an = abs(N);
float grazing = smoothstep(0.18, 0.02, min(dx, min(dy, dz))) * (1.0 - max(an.x, max(an.y, an.z)) * 0.45);
float band = smoothstep(0.28, 0.03, abs(f.y - 0.5)) * smoothstep(0.55, 0.92, an.y);
sliverBadness = clamp(grazing * 1.35 + band * 0.85, 0.0, 1.0);
}
vec3 acesTone(vec3 x) {
return clamp((x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14), 0.0, 1.0);
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 res = max(iResolution.xy, vec2(1.0));
vec2 uvN = fragCoord / res;
float splitX = iMouse.z > 0.0 ? clamp(iMouse.x / res.x, 0.05, 0.95) : 0.5;
bool useRemesh = uvN.x > splitX;
vec2 p = (fragCoord - 0.5 * res) / res.y;
float t = iTime * P_TURN_SPEED;
vec3 ro = vec3(0.0, 0.48, 2.55);
vec3 rd = normalize(vec3(p.x * 1.05, p.y - 0.14, -1.65));
mat2 rx = rot2(t * 0.75 + 0.35);
mat2 ry = rot2(0.25 * sin(t * 0.6));
vec3 roL = ro; roL.xz = rx * roL.xz; roL.yz = ry * roL.yz;
vec3 rdL = rd; rdL.xz = rx * rdL.xz; rdL.yz = ry * rdL.yz;
vec3 bg = mix(vec3(0.06, 0.08, 0.11), vec3(0.15, 0.19, 0.25), clamp(p.y + 0.55, 0.0, 1.0));
vec3 col = bg;
float d = 0.0;
bool hit = false;
for (int i = 0; i < 68; i++) {
float h = poissonChi(roL + rdL * d);
if (h < 0.0018) { hit = true; break; }
d += h * 0.85;
if (d > 8.0) break;
}
if (hit) {
vec3 wp = roL + rdL * d;
vec3 smoothN = poissonNormal(wp);
vec3 V = -rdL;
vec3 L1 = normalize(vec3(0.62, 0.80, 0.45));
vec3 L2 = normalize(vec3(-0.72, 0.28, -0.52));
float gridScale = 8.5 / max(P_TARGET_L, 0.3);
vec3 N = smoothN;
vec3 surfAlb;
float wireMask;
if (!useRemesh) {
// Left baseline: raw Poisson octree marching cubes with skinny grazing slivers & shading facets
float wd, badness;
octreeSliverMetric(wp, smoothN, gridScale, wd, badness);
vec3 snapP = (floor(wp * gridScale) + 0.5) / gridScale;
vec3 octN = poissonNormal(snapP);
N = normalize(mix(smoothN, octN, 0.42 + 0.35 * badness));
wireMask = smoothstep(0.075, 0.015, wd);
vec3 baseTone = vec3(0.62, 0.60, 0.56);
vec3 badTone = vec3(0.95, 0.30, 0.16);
surfAlb = mix(baseTone, badTone, badness * P_QUAL_HEAT);
} else {
// Right: Botsch-Kobbelt isotropic remeshing projected back onto smooth Poisson chi(x)=0
// Triplanar-blended equilateral valence-6 triangle wireframe showing uniform edge length L
vec3 wTri = pow(abs(smoothN), vec3(4.0));
wTri /= max(wTri.x + wTri.y + wTri.z, 1e-4);
float wx = eqTriWire(wp.yz, gridScale * 0.92);
float wy = eqTriWire(wp.xz, gridScale * 0.92);
float wz = eqTriWire(wp.xy, gridScale * 0.92);
float wd = wx * wTri.x + wy * wTri.y + wz * wTri.z;
wireMask = smoothstep(0.068, 0.015, wd);
// High triangle quality (near-1.0 equilateral aspect ratio) shown in calm emerald-teal / ivory
surfAlb = mix(vec3(0.64, 0.68, 0.70), vec3(0.22, 0.72, 0.64), P_QUAL_HEAT * 0.52);
}
float ndl1 = max(dot(N, L1), 0.0);
float ndl2 = max(dot(N, L2), 0.0);
float fres = 0.05 + 0.95 * pow(1.0 - max(dot(N, V), 0.0), 3.6);
float spec = pow(max(dot(N, normalize(L1 + V)), 0.0), 58.0);
vec3 lit = surfAlb * (vec3(0.18, 0.22, 0.28) + vec3(1.16, 1.08, 0.98) * ndl1 + vec3(0.26, 0.36, 0.48) * ndl2) + vec3(1.0, 0.96, 0.90) * (spec * 0.52 + fres * 0.24);
vec3 wireCol = useRemesh ? vec3(0.08, 0.18, 0.20) : vec3(0.18, 0.06, 0.04);
col = mix(lit, wireCol, wireMask * P_WIRE_VIS * 0.62);
}
col = acesTone(col * 1.08);
if (abs(fragCoord.x - splitX * res.x) < 1.0) col = vec3(0.95, 0.93, 0.89);
fragColor = vec4(pow(clamp(col, 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}Why they connect
Poisson Surface Reconstruction solves a sparse octree Poisson PDE from an oriented point cloud and extracts a watertight zero-isosurface triangle mesh (often containing needle-thin triangles where the isosurface grazes octree cell faces). That triangle mesh feeds directly into Isotropic Remeshing, which iteratively splits edges longer than (4/3)L, collapses edges shorter than (4/5)L, flips edges to equalize vertex valence toward 6, and applies tangential Laplacian smoothing projected back onto the Poisson implicit surface so all output triangles approach uniform target edge length L without losing volume.
How to build it
Reconstruct the implicit indicator function chi(x) on an adaptive octree (or compact 3D grid in WebGL2) from oriented point samples and extract the initial contour mesh. Build a half-edge mesh and run 3-5 iterations of Botsch-Kobbelt incremental remeshing: (1) split edges > 4/3 * targetL, (2) collapse edges < 4/5 * targetL while preserving manifoldness and crease angles, (3) flip interior edges whenever valence deviation sum |val - 6| decreases, and (4) slide each vertex tangentially toward the area-weighted centroid of its 1-ring before projecting back along the Poisson indicator gradient onto chi(x) = isoValue so fine surface curvature never shrinks.
Field marks
- Projection back onto a noisy raw triangle mesh instead of the smooth Poisson implicit field introduces subtle faceting during tangential relaxation.
- Uniform target edge length L over-tessellates flat planes and under-samples tight ridges unless L is modulated locally by mean curvature.
- Inconsistent point-cloud normal orientations invert local Poisson bubbles, which isotropic remeshing faithfully preserves as spurious closed shells.
- Edge collapses across thin sheets narrower than L can pinch opposite sides into self-intersecting non-manifold folds.
Prior art
No prior art found on 2026-12-01.
Searches run (2)
- arXiv: all:"Poisson surface reconstruction" AND all:"isotropic remeshing"
- GitHub repos: "poisson surface reconstruction" "isotropic remeshing"